Skip to content

Commit 0c9fac0

Browse files
authored
Merge pull request #513 from dimitri-yatsenko/dev
skip password config update if config_update=False
2 parents b5882df + dbe6675 commit 0c9fac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def set_password(new_password=None, connection=None, update_config=None): # pr
1515
connection.query("SET PASSWORD = PASSWORD('%s')" % new_password)
1616
print('Password updated.')
1717

18-
if update_config or user_choice('Update local setting?') == 'yes':
18+
if update_config or (update_config is None and user_choice('Update local setting?') == 'yes'):
1919
config['database.password'] = new_password
2020
config.save_local(verbose=True)
2121

0 commit comments

Comments
 (0)