File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,13 @@ def return_code(self):
9191def _execute (command : str ):
9292 success = False
9393 try :
94- conn = get_connection ()
94+ conn = get_conn ()
9595 response = conn .execute_command (* command .split ())
9696 success = True
9797 except (redis .exceptions .ConnectionError , redis .exceptions .ResponseError ):
9898 try :
9999 reload_username_password_from_file_system_if_needed (app )
100- conn = get_connection ()
100+ conn = get_conn ()
101101 response = conn .execute_command (* command .split ())
102102 success = True
103103 except Exception as err :
@@ -151,7 +151,7 @@ def reload_username_password_from_file_system_if_needed(app):
151151 app .config ["REDIS_USERNAME" ] = redis_username
152152
153153
154- def get_connection ():
154+ def get_conn ():
155155 if app .config ['USE_SENTINEL' ]:
156156 return _get_sentinel_conn ()
157157 else :
You can’t perform that action at this time.
0 commit comments