diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2022-03-18 11:43:34 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-03-18 11:48:29 +0000 |
commit | 1ed006333b576ecfbbfa2ab93a02688de9a4eb07 (patch) | |
tree | b73a1e9bc44f575195a46c05e3bf4b951d5281d8 /docs/g-ir-compiler.1 | |
parent | c887488affefb6f83094b28675e91e1153c17978 (diff) | |
download | gobject-introspection-1ed006333b576ecfbbfa2ab93a02688de9a4eb07.tar.gz |
scanner: Check before accessing an optional field
It seems that optparse might just ignore storing options without a
default. In this case, the `--compiler` option should be initialised to
`None`, but instead it just gets ignored.
Without the `hasattr()` check, updating the introspection data for GLib
fails with a Python backtrace.
Diffstat (limited to 'docs/g-ir-compiler.1')
0 files changed, 0 insertions, 0 deletions