Skip to content

Commit

Permalink
Added a check for password when getting information for Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannova committed Aug 7, 2024
1 parent ddc7614 commit 2f0ace4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion merlin/study/celerymanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def get_redis_connection(db_num):
try:
password = get_backend_password(password_file)
except IOError:
password = CONFIG.results_backend.password
password = None
if hasattr(CONFIG.results_backend, "password"):
password = CONFIG.results_backend.password
return redis.Redis(
host=CONFIG.results_backend.server,
port=CONFIG.results_backend.port,
Expand Down

0 comments on commit 2f0ace4

Please sign in to comment.