Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
UnicodeDecodeError corrected
I've got an UnicodeDecode error for the ascii codec while logging a message while running m64py on Ubuntu versions 14.04+. Adding two lines corrected the problem
  • Loading branch information
milseg committed May 15, 2015
1 parent ebf5dd4 commit 837ab48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/m64py/core/core.py
Expand Up @@ -230,6 +230,8 @@ def plugin_load_try(self, plugin_path=None):
plugin_handle, plugin_path, PLUGIN_NAME[plugin_type], plugin_desc, plugin_version)
except OSError as e:
log.debug("plugin_load_try()")
plugin_path = plugin_path.decode('ascii', 'ignore')
plugin_path = plugin_path.encode('ascii')
log.error("failed to load plugin %s: %s" % (plugin_path, e))

def plugin_startup(self, handle, name, desc):
Expand Down

0 comments on commit 837ab48

Please sign in to comment.