Skip to content

Commit 51d1d87

Browse files
committed
Revert back to reset method cause of datajoint error
1 parent 1167c21 commit 51d1d87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dj_gui_api_server/DJConnector.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ def attempt_login(database_address, username, password):
2121

2222
# Attempt to connect return true if successful, false is failed
2323
try:
24-
dj.conn()
25-
dj.conn.connection.close()
24+
dj.conn(reset=True)
2625
return dict(result=True)
2726
except Exception as e:
2827
return dict(result=False, error=e)

0 commit comments

Comments
 (0)