We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9419a44 commit 339fd75Copy full SHA for 339fd75
python/plugins/db_manager/db_plugins/plugin.py
@@ -37,7 +37,8 @@ def __init__(self, e):
37
else:
38
msg = e
39
40
- msg = unicode(val, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)
+ if not isinstance(msg, unicode):
41
+ msg = unicode(msg, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)
42
43
self.msg = msg
44
Exception.__init__(self, msg)
0 commit comments