diff --git a/.docker/qgis_resources/test_runner/qgis_startup.py b/.docker/qgis_resources/test_runner/qgis_startup.py index b0b823d3b28..94c07906f0e 100644 --- a/.docker/qgis_resources/test_runner/qgis_startup.py +++ b/.docker/qgis_resources/test_runner/qgis_startup.py @@ -6,11 +6,12 @@ Is should be renamed to `startup.py` and placed into ~/.qgis3/python/startup.py """ +from qgis.core import Qgis from qgis import utils import traceback -def _showException(type, value, tb, msg, messagebar=False): +def _showException(type, value, tb, msg, messagebar=False, level=Qgis.Warning): print(msg) logmessage = '' for s in traceback.format_exception(type, value, tb):