Merge pull request #51 from milseg/master

UnicodeDecodeError corrected
This commit is contained in:
Milan Nikolic 2015-06-02 09:04:44 +02:00
commit 56be5ba946

View file

@ -230,6 +230,8 @@ class Core:
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):