mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Fix signature of showException in test runner
This commit is contained in:
parent
e69ca95459
commit
563d41d224
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user