diff --git a/dj_gui_api_server/DJConnector.py b/dj_gui_api_server/DJConnector.py index 252ff21..28bf5a9 100644 --- a/dj_gui_api_server/DJConnector.py +++ b/dj_gui_api_server/DJConnector.py @@ -21,8 +21,7 @@ def attempt_login(database_address, username, password): # Attempt to connect return true if successful, false is failed try: - dj.conn() - dj.conn.connection.close() + dj.conn(reset=True) return dict(result=True) except Exception as e: return dict(result=False, error=e)