From: Philippe Proulx Date: Thu, 26 Nov 2015 21:59:00 +0000 (-0500) Subject: checkdocs.py: fix NoneType error X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=40fb8f455685dbc69d34b51786d40b067bd78383;p=lttng-docs.git checkdocs.py: fix NoneType error Signed-off-by: Philippe Proulx --- diff --git a/tools/checkdocs.py b/tools/checkdocs.py index 9f56a3f..3fc5586 100755 --- a/tools/checkdocs.py +++ b/tools/checkdocs.py @@ -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(' ')