summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-04-06 14:17:12 -0700
committerChristoph Reiter <reiter.christoph@gmail.com>2019-04-08 07:48:10 +0200
commitcde0ea3134e12c509830a049cad96a85e9e82c32 (patch)
tree1a729056ae1beb9c46ccbe3958ee8bc73a51ad52
parent2e82445127a3c69ea7041a2a83f6f029d5f661a0 (diff)
downloadgobject-introspection-cde0ea3134e12c509830a049cad96a85e9e82c32.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'