From 1f2072f8c2b5f62f56e669b0b4dd42f8f4ac3003 Mon Sep 17 00:00:00 2001 From: John Garland Date: Mon, 6 Jul 2009 04:40:57 +0000 Subject: [PATCH] Make sure last_update is an ascii encoded string. --- deluge/plugins/blocklist/blocklist/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py index e9852ea79..9cc29ed35 100644 --- a/deluge/plugins/blocklist/blocklist/core.py +++ b/deluge/plugins/blocklist/blocklist/core.py @@ -163,7 +163,7 @@ class Core(CorePluginBase): def update_info(self, blocklist): """Updates blocklist info""" - self.config["last_update"] = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT") + self.config["last_update"] = str(datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")) self.config["list_size"] = os.path.getsize(blocklist) def download_list(self, url=None):