From 6df2f9f8d9d20a331029ffdcc4d80952dd98bc0a Mon Sep 17 00:00:00 2001 From: louis chauvet Date: Wed, 22 Aug 2018 16:52:58 +0200 Subject: [PATCH] repair timeout error ftp --- main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.py b/main.py index a2a849b..537822c 100644 --- a/main.py +++ b/main.py @@ -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)