mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove assert statement from non-test files
This commit is contained in:
parent
44cd1fd974
commit
dd50a9b13e
29 changed files with 637 additions and 323 deletions
|
|
@ -22,7 +22,8 @@ def pytest_collection_modifyitems(config, items):
|
|||
return
|
||||
try:
|
||||
address, options = aioredis.util.parse_url(redis_uri)
|
||||
assert isinstance(address, tuple), "Only redis and rediss schemas are supported, eg redis://foo."
|
||||
if not isinstance(address, tuple):
|
||||
raise AssertionError("Only redis and rediss schemas are supported, eg redis://foo.")
|
||||
except AssertionError as e:
|
||||
raise UsageError(f"Invalid redis URI {redis_uri!r}: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue