Skip to content

Commit

Permalink
DBManager: revert commit 87675f8ab
Browse files Browse the repository at this point in the history
Maybe I was drunk...
  • Loading branch information
brushtyler committed Oct 22, 2015
1 parent 87657f8 commit 9419a44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/plugins/db_manager/db_plugins/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def __init__(self, e):
else:
msg = e

try:
return unicode(val) # convert to unicode
except UnicodeDecodeError:
return unicode(val, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)
msg = unicode(val, 'utf-8', 'replace') # convert from utf8 and replace errors (if any)

self.msg = msg
Exception.__init__(self, msg)
Expand Down

0 comments on commit 9419a44

Please sign in to comment.