lgtm.com flags this as "Except block directly handles BaseException".
These examples show how to call libnm from Python using GObject introspection.