mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Remove critical code from assert statements
This commit is contained in:
@@ -16,10 +16,14 @@ class Raw(EventBuilder):
|
||||
if not types:
|
||||
self.types = None
|
||||
elif not utils.is_list_like(types):
|
||||
assert isinstance(types, type)
|
||||
if not isinstance(types, type):
|
||||
raise TypeError('Invalid input type given %s', types)
|
||||
|
||||
self.types = types
|
||||
else:
|
||||
assert all(isinstance(x, type) for x in types)
|
||||
if not all(isinstance(x, type) for x in types):
|
||||
raise TypeError('Invalid input types given %s', types)
|
||||
|
||||
self.types = tuple(types)
|
||||
|
||||
async def resolve(self, client):
|
||||
|
Reference in New Issue
Block a user