checkdocs.py: fix NoneType error
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 26 Nov 2015 21:59:00 +0000 (16:59 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 26 Nov 2015 22:02:20 +0000 (17:02 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
tools/checkdocs.py

index 9f56a3f2112e268c1eaf2d444a711bdcdadb53cb..3fc55865ce2f3e63291182dc54000c206c54e2fe 100755 (executable)
@@ -101,6 +101,7 @@ def _check_file_links(toc_ids, path, c):
 
         if classes is None:
             _pwarn(path, 'External link has no "ext" class: "{}"'.format(link))
+            classes = []
         else:
             classes = classes.group(1).split(' ')
 
This page took 0.023609 seconds and 4 git commands to generate.