Some code organisation and recovery procedure fix
This commit is contained in:
@@ -21,7 +21,7 @@ class DbManager(object):
|
||||
cls.__connection = mariadb.connect(**cls.__con_param)
|
||||
except mariadb.InterfaceError as e:
|
||||
cls.__connection = mariadb.connect(**cls.__con_param)
|
||||
print(f"INTERFACE ERROR: {e}")
|
||||
print(f"DbManager Connection (INTERFACE ERROR): {e}..reconnecting...")
|
||||
except mariadb.Error as e:
|
||||
print(f"Connection parameters are wrong: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user