diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-04-06 14:17:12 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2019-04-07 21:47:53 -0700 |
commit | 551a3f77816b89b540cdca6836c2822ac4740adb (patch) | |
tree | 6d021a2cdfbb79e7bb55a6024a4e5bd809bdef99 /giscanner | |
parent | c074fe86b921e2e0c74c6965bc8c74d033cad00e (diff) | |
download | gobject-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.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/docwriter.py | 2 |
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' |