diff --git a/deluge/tests/test_json_api.py b/deluge/tests/test_json_api.py index 76e9b702e..46c221b6f 100644 --- a/deluge/tests/test_json_api.py +++ b/deluge/tests/test_json_api.py @@ -260,7 +260,7 @@ class JSONRequestFailedTestCase(JSONBase): self.assertEquals(response["id"], 0) self.assertEquals(response["error"]["message"], "Failure: [Failure instance: Traceback (failure with no frames):" - " : DelugeERROR\n]"), + " : DelugeERROR\n]") self.assertEquals(response["error"]["code"], 4) request.write = write diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index af65af545..0a093896c 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -875,7 +875,7 @@ class WebApi(JSONComponent): web_config = component.get("DelugeWeb").config for key in config.keys(): if key in ["sessions", "pwd_salt", "pwd_sha1"]: - log.warn("Ignored attempt to overwrite web config key '%s'" % key) + log.warn("Ignored attempt to overwrite web config key '%s'", key) continue if isinstance(config[key], basestring): config[key] = config[key].encode("utf8")