Skip to content

Commit

Permalink
DBManager: merge PR2342 by medspx (fix #13650)
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Oct 22, 2015
1 parent 9419a44 commit 339fd75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -37,7 +37,8 @@ def __init__(self, e):
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)
Expand Down

0 comments on commit 339fd75

Please sign in to comment.