Raise ImportError when importing modules not found in repository
commitac8b59ee335967efef974ab0aa89128ade9f3d0c
authorSimon Feltman <sfeltman@src.gnome.org>
Tue, 25 Mar 2014 01:09:10 +0000 (24 18:09 -0700)
committerSimon Feltman <sfeltman@src.gnome.org>
Tue, 25 Mar 2014 01:26:56 +0000 (24 18:26 -0700)
tree22df573a4b55716470ddbde9ce91279f5c264607
parente604ada06a8ef8f9a06f0638cf183cfeacdc63a9
Raise ImportError when importing modules not found in repository

Raise an ImportError with extra information noting the typelib was not
found. This removes the need to log a similar message which adds output
noise when attempting controlled imports within try/except statements.
In Python 2, the additional information is lost but in Python 3 it shows up.

https://bugzilla.gnome.org/show_bug.cgi?id=726877
gi/importer.py
tests/test_import_machinery.py