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
|
raise e
|
||||||
except ftplib.error_temp, e: # Reconnect on timeout
|
except ftplib.error_temp, e: # Reconnect on timeout
|
||||||
self.set_ftp(connect_ftp())
|
self.set_ftp(connect_ftp())
|
||||||
|
except ftplib.error, e: # Unsure of error, try reconnecting
|
||||||
|
self.set_ftp(connect_ftp())
|
||||||
|
|
||||||
print "Finished uploading"
|
print "Finished uploading"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue