mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
DBManager: merge PR2342 by medspx (fix #13650)
This commit is contained in:
parent
9419a44537
commit
339fd75655
@ -37,7 +37,8 @@ class BaseError(Exception):
|
||||
else:
|
||||
msg = e
|
||||
|
||||
msg = unicode(val, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)
|
||||
if not isinstance(msg, unicode):
|
||||
msg = unicode(msg, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)
|
||||
|
||||
self.msg = msg
|
||||
Exception.__init__(self, msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user