repair timeout error ftp
This commit is contained in:
parent
6166d50580
commit
6df2f9f8d9
4
main.py
4
main.py
@ -208,10 +208,6 @@ class FoBot(discord.Client):
|
|||||||
info("foBot is resumed.")
|
info("foBot is resumed.")
|
||||||
|
|
||||||
async def on_error(self, event, *args, **kwargs):
|
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)
|
error("foBot encounter an error.", exc_info=True)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user