Skip to content

Commit a7692e3

Browse files
committed
added translation and style
1 parent beee7a9 commit a7692e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qgist/msg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ def msg_warning(exception, widget = None):
5555
def _msg(msg_type, msg_title, exception, widget = None):
5656

5757
if not isinstance(exception, Exception):
58-
raise QgistTypeError('exception must be of type Exception')
58+
raise QgistTypeError(translate('global', '"exception" must be of type Exception. (msg)'))
5959
if not isinstance(widget, QWidget) and widget is not None:
60-
raise QgistTypeError('widget must be of type QWidget or None')
60+
raise QgistTypeError(translate('global', '"widget" must be of type QWidget or None. (msg)'))
6161

6262
if len(exception.args) == 0:
63-
msg = translate('global', 'Internal error. No description can be provided. Please file a bug.')
63+
msg = translate('global', 'Internal error. No description can be provided. Please file a bug. (msg)')
6464
else:
6565
msg = str(exception.args[0])
6666

0 commit comments

Comments
 (0)