diff options
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Plugin.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/MultiHome.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index ac66d6243..23c9bbf6d 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -300,7 +300,7 @@ class Plugin(object): makedirs(join("tmp", self.__name__)) f = open(join("tmp", self.__name__, "%s_line%s.dump.html" % (frame.f_back.f_code.co_name, frame.f_back.f_lineno)), "wb") - f.write(res) + f.write(res.encode("utf8")) f.close() return res diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py index 3f41938dc..b9b6ac5b7 100644 --- a/module/plugins/hooks/MultiHome.py +++ b/module/plugins/hooks/MultiHome.py @@ -55,7 +55,7 @@ class MultiHome(Hook): iface.useFor(pluginName, account) requestFactory.iface = iface.adress self.log.debug("Multihome: using address: "+iface.adress) - return oldGetRequest(pluginName, account, type) + return oldGetRequest(pluginName, account) requestFactory.getRequest = getRequest def bestInterface(self, pluginName, account): |