summaryrefslogtreecommitdiff
path: root/giscanner/gdumpparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/gdumpparser.py')
-rw-r--r--giscanner/gdumpparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index 21fbadf4..b5ca4362 100644
--- a/giscanner/gdumpparser.py
+++ b/giscanner/gdumpparser.py
@@ -414,7 +414,7 @@ different --identifier-prefix.""" % (xmlnode.attrib['name'], self._namespace.ide
writable = (flags & G_PARAM_WRITABLE) != 0
construct = (flags & G_PARAM_CONSTRUCT) != 0
construct_only = (flags & G_PARAM_CONSTRUCT_ONLY) != 0
- default_value = pspec.attrib['default-value']
+ default_value = pspec.attrib.get('default-value')
prop = ast.Property(
pspec.attrib['name'],
ast.Type.create_from_gtype_name(ctype),