Skip to content

Commit 76178db

Browse files
committed
redis: Fix connection URL reading from config file
The previous commit (bfc981f) was missing an elif branch and therefore the code didn't read the "url" configuration option from the config file at all. Fix that.
1 parent bfc981f commit 76178db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/passari_workflow/redis/connection.py

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def get_redis_url():
3030
)
3131
elif url and (host or port or db or password):
3232
raise EnvironmentError("The 'url' config for Redis is exclusive")
33+
elif url:
34+
return url
3335

3436
password_part = f":{quote(password)}@" if password else ""
3537
port_part = f":{port}" if port else ""

0 commit comments

Comments
 (0)