Fix string formatting on events.Raw with bad input param

This commit is contained in:
Lonami Exo 2020-04-26 13:33:12 +02:00
parent a16c60c886
commit eb58e60dd1

View File

@ -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)