Skip to content

Commit c85cf25

Browse files
authored
Merge pull request #13 from andersinno/redis-url-conf-fix
redis: Fix connection URL reading from config file
2 parents 6826d53 + 76178db commit c85cf25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: 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)