summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--giscanner/docwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index aa8b993c..786da80d 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -1209,7 +1209,7 @@ class DevDocsFormatterGjs(DocFormatterGjs):
try:
return super(DevDocsFormatterGjs, self).to_underscores(node)
except Exception as e:
- if e.message == 'invalid node':
+ if e.args[0] == 'invalid node':
print('warning: invalid node in', node.parent.name,
file=sys.stderr)
return node.parent.name + '_invalid_node'