Try reconnect if other type of error

This commit is contained in:
Chris Oliver 2012-01-19 19:14:37 -06:00
parent 829de89d1f
commit 673c93d500

View file

@ -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"