Skip to content

Commit fe539b6

Browse files
authored
Update utils.py (#687)
1 parent b367e6c commit fe539b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_rq/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_scheduler_statistics():
111111
connection = first_sentinel.connection_pool.connection_kwargs
112112
else:
113113
connection = queue.connection.connection_pool.connection_kwargs
114-
conn_key = f"{connection['host']}:{connection.get('port', 6379)}/{connection.get('db', 0)}"
114+
conn_key = f"{connection.get('host', 'NOHOST')}:{connection.get('port', 6379)}/{connection.get('db', 0)}"
115115
if conn_key not in schedulers:
116116
try:
117117
scheduler = get_scheduler(config['name'])

0 commit comments

Comments
 (0)