Commit c83efc88 authored by Simon Feltman's avatar Simon Feltman
Browse files

giscanner: Use modern exception handling for Python 3 compatibility

https://bugzilla.gnome.org/show_bug.cgi?id=679438
parent 7af04431
...@@ -747,7 +747,7 @@ class MainTransformer(object): ...@@ -747,7 +747,7 @@ class MainTransformer(object):
field.doc = tag.description field.doc = tag.description
try: try:
self._adjust_container_type(parent, field, tag.annotations) self._adjust_container_type(parent, field, tag.annotations)
except AttributeError, ex: except AttributeError as ex:
print ex print ex
def _apply_annotations_property(self, parent, prop): def _apply_annotations_property(self, parent, prop):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment