mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Fix string formatting on events.Raw with bad input param
This commit is contained in:
parent
a16c60c886
commit
eb58e60dd1
|
@ -29,12 +29,12 @@ class Raw(EventBuilder):
|
||||||
self.types = None
|
self.types = None
|
||||||
elif not utils.is_list_like(types):
|
elif not utils.is_list_like(types):
|
||||||
if not isinstance(types, type):
|
if not isinstance(types, type):
|
||||||
raise TypeError('Invalid input type given %s', types)
|
raise TypeError('Invalid input type given: {}'.format(types))
|
||||||
|
|
||||||
self.types = types
|
self.types = types
|
||||||
else:
|
else:
|
||||||
if not 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)
|
raise TypeError('Invalid input types given: {}'.format(types))
|
||||||
|
|
||||||
self.types = tuple(types)
|
self.types = tuple(types)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user