Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
I've removed the print condition, because it will just result in an error no matter what (sigh)
  • Loading branch information
zkamvar authored Mar 11, 2021
1 parent 0554a8d commit cce6a66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/lesson_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,11 @@ def check_codeblock_classes(self):

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

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

0 comments on commit cce6a66

Please sign in to comment.