From 149fe8fdb4b255962cdd1edea61df248a8b5ebc3 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 19 Nov 2011 18:43:44 -0500 Subject: [PATCH] Fix. --- bot/tasks/afc_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/tasks/afc_history.py b/bot/tasks/afc_history.py index 9445974..9f9c6bd 100644 --- a/bot/tasks/afc_history.py +++ b/bot/tasks/afc_history.py @@ -78,7 +78,7 @@ class Task(BaseTask): dest = expanduser(self.destination) with open(dest, "wb") as fp: - fp.write(data) + fp.write(str(data)) self.logger.info("Chart saved to {0}".format(dest)) def backwards_cat_iterator(self):