Catch all FTP errors
This commit is contained in:
parent
67bc9c2691
commit
846df91396
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class Logbot(SingleServerIRCBot):
|
|||
# Reconnect on timeout
|
||||
except ftplib.error_temp, e: self.set_ftp(connect_ftp())
|
||||
# Unsure of error, try reconnecting
|
||||
except ftplib.error, e: self.set_ftp(connect_ftp())
|
||||
except: self.set_ftp(connect_ftp())
|
||||
|
||||
print "Finished uploading"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue