diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-04-06 14:17:12 -0700 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-04-08 07:48:10 +0200 |
commit | cde0ea3134e12c509830a049cad96a85e9e82c32 (patch) | |
tree | 1a729056ae1beb9c46ccbe3958ee8bc73a51ad52 | |
parent | 2e82445127a3c69ea7041a2a83f6f029d5f661a0 (diff) | |
download | gobject-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.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' |