reconnect if database connection was closed...

This commit is contained in:
Philipp 2022-10-03 20:08:44 +02:00
parent 8b07505672
commit eb263227fd
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
2 changed files with 18 additions and 6 deletions

View file

@ -41,6 +41,7 @@ def main(args):
bot = interactions.Client(token=token)
con = Database(host, user, password, db)
try:
if args[0] == "init_database":
con.init_test_database()