Exceptions#
All of the exceptions raised by the module.
- exception animec.errors.NoResultFound#
Bases:
Exception
Raised if no result is found or there is a HTTP error
- exception animec.errors.TooManyRequests#
Bases:
Exception
Raised when number of requests exceed than the expected
They can be easily handled using try except blocks in this way:
Handling#
try:
result = animec.Anime('foo')
except animec.errors.NoResultFound:
print("No such anime found in the search query.")