Skip to content

Commit 750639e

Browse files
committed
Oshri's CR: styling fix
1 parent d0c97fc commit 750639e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ def return_code(self):
9191
def _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:

0 commit comments

Comments
 (0)