Skip to content

Commit cce6a66

Browse files
authored
fix syntax
I've removed the print condition, because it will just result in an error no matter what (sigh)
1 parent 0554a8d commit cce6a66

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/lesson_check.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,11 @@ def check_codeblock_classes(self):
392392

393393
for node in self.find_all(self.doc, {'type': 'codeblock'}):
394394
cls = self.get_val(node, 'attr', 'class')
395-
self.reporter.check(cls is not none and (cls in KNOWN_CODEBLOCKS or
395+
self.reporter.check(cls is not None and (cls in KNOWN_CODEBLOCKS or
396396
cls.startswith('language-')),
397397
(self.filename, self.get_loc(node)),
398398
'Unknown or missing code block type {0}',
399399
cls)
400-
if not cls is None:
401-
print("NOTE: The AST was malformed and needs to be investigated")
402-
print(self.filename, self.get_loc(node))
403400

404401
def check_defined_link_references(self):
405402
"""Check that defined links resolve in the file.

0 commit comments

Comments
 (0)