Add InvalidStickersSet exception

This commit is contained in:
Alex Root Junior 2018-04-22 22:02:58 +03:00
parent a941a00abc
commit e3e1ed9ed7
2 changed files with 10 additions and 2 deletions

View file

@ -98,6 +98,8 @@ async def _check_result(method_name, response):
exceptions.ToMuchMessages.throw()
elif exceptions.InvalidStickersSet.check(description):
exceptions.InvalidStickersSet.throw()
elif exceptions.ChatAdminRequired.check(description):
exceptions.ChatAdminRequired.throw()
raise exceptions.BadRequest(description)
elif response.status == HTTPStatus.NOT_FOUND:
if exceptions.MethodNotKnown.check(description):