Added except to bot.run to catch errors at closing
parent
dac4516285
commit
5cb68fc208
|
@ -108,6 +108,8 @@ if __name__ == '__main__':
|
|||
bot.run(bot_config.token)
|
||||
except TimeoutError:
|
||||
print("Disconnected, is Discord offline?")
|
||||
except:
|
||||
print("Bye")
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue