Skip to content

Commit 4293902

Browse files
authored
Merge pull request #9 from Synicix/master
Revert back to reset method cause of datajoint error
2 parents 1167c21 + 51d1d87 commit 4293902

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)