Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-oleshkevich committed Oct 7, 2024
1 parent 97363d5 commit f8df781
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions starsessions/stores/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def __init__(
:param gc_ttl: TTL for sessions that have no expiration time
"""
if not (url or connection):
raise ImproperlyConfigured(
"Either 'url' or 'connection' arguments must be provided."
)
raise ImproperlyConfigured("Either 'url' or 'connection' arguments must be provided.")

if isinstance(prefix, str):
prefix = functools.partial(prefix_factory, prefix)
Expand Down

0 comments on commit f8df781

Please sign in to comment.