repair timeout error ftp

This commit is contained in:
louis chauvet 2018-08-22 16:52:58 +02:00
parent 6166d50580
commit 6df2f9f8d9

View File

@ -208,10 +208,6 @@ class FoBot(discord.Client):
info("foBot is resumed.")
async def on_error(self, event, *args, **kwargs):
if sys.exc_type == ftplib.error_temp:
global fileSystem
fileSystem = FTPFS(os.environ["FTP_ADDRESS"], user=os.environ["FTP_USER"], passwd=os.environ["FTP_PASS"],
timeout=600)
error("foBot encounter an error.", exc_info=True)