Catch all FTP errors

This commit is contained in:
Chris Oliver 2012-01-19 20:11:13 -06:00
parent 67bc9c2691
commit 846df91396

View file

@ -228,7 +228,7 @@ class Logbot(SingleServerIRCBot):
# Reconnect on timeout # Reconnect on timeout
except ftplib.error_temp, e: self.set_ftp(connect_ftp()) except ftplib.error_temp, e: self.set_ftp(connect_ftp())
# Unsure of error, try reconnecting # Unsure of error, try reconnecting
except ftplib.error, e: self.set_ftp(connect_ftp()) except: self.set_ftp(connect_ftp())
print "Finished uploading" print "Finished uploading"