summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-04-06 14:17:12 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2019-04-07 21:47:53 -0700
commit551a3f77816b89b540cdca6836c2822ac4740adb (patch)
tree6d021a2cdfbb79e7bb55a6024a4e5bd809bdef99
parentc074fe86b921e2e0c74c6965bc8c74d033cad00e (diff)
downloadgobject-introspection-551a3f77816b89b540cdca6836c2822ac4740adb.tar.gz
docwriter: Fix Exception message attribute
This may have been a leftover from Python 2. Exception('message') does not automatically set a message attribute on the exception object.
-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'