Following on from a question I asked about getting the version information from python-qgis
, with a brilliant solution provided by @falsetru, I am running into a problem whereby importing qgis.utils
seems to hide all exceptions. Running the following code in the interpreter, I get no traceback, or anything useful following a raised exception, see below.
>>> import qgis.utils
>>> qgis.utils.QGis.QGIS_VERSION
'2.4.0-Chugiak'
>>> raise Exception('boof!')
>>>
Could someone tell me how I can turn back on traceback after importing qgis-utils
or another way of getting the version information from python-qgis
without needing to import utils
?
Many thanks!