Try reconnect if other type of error
This commit is contained in:
parent
829de89d1f
commit
673c93d500
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue