From 673c93d50079e2ec71fe1696ef333b4eb308bc46 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Thu, 19 Jan 2012 19:14:37 -0600 Subject: Try reconnect if other type of error --- logbot.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'logbot.py') diff --git a/logbot.py b/logbot.py index 8cc23b6..c7f500c 100644 --- a/logbot.py +++ b/logbot.py @@ -223,6 +223,8 @@ class Logbot(SingleServerIRCBot): raise e except ftplib.error_temp, e: # Reconnect on timeout self.set_ftp(connect_ftp()) + except ftplib.error, e: # Unsure of error, try reconnecting + self.set_ftp(connect_ftp()) print "Finished uploading" -- cgit v1.2.3