We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a283c4b + cce6a66 commit 091d31aCopy full SHA for 091d31a
bin/lesson_check.py
@@ -392,7 +392,8 @@ def check_codeblock_classes(self):
392
393
for node in self.find_all(self.doc, {'type': 'codeblock'}):
394
cls = self.get_val(node, 'attr', 'class')
395
- self.reporter.check(cls in KNOWN_CODEBLOCKS or cls.startswith('language-'),
+ self.reporter.check(cls is not None and (cls in KNOWN_CODEBLOCKS or
396
+ cls.startswith('language-')),
397
(self.filename, self.get_loc(node)),
398
'Unknown or missing code block type {0}',
399
cls)
0 commit comments