From 563d41d22470aada0543e689bbbcd315e01be902 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 30 Nov 2021 13:25:10 +1000 Subject: [PATCH] Fix signature of showException in test runner --- .docker/qgis_resources/test_runner/qgis_startup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):