reconnect if database connection was closed...
This commit is contained in:
parent
8b07505672
commit
eb263227fd
2 changed files with 18 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue