Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd67ffe

Browse files
committed
Add error message for provider is not None assertion
1 parent bec36fd commit cd67ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, app=None, strict=False, config_prefix='REDIS'):
2020

2121
@classmethod
2222
def from_custom_provider(cls, provider, app=None, **kwargs):
23-
assert provider is not None
23+
assert provider is not None, 'your custom provider cannot be None, come on'
2424

2525
# We never pass the app parameter here, so we can call init_app
2626
# ourselves later, after the provider class has been set

0 commit comments

Comments
 (0)