2014-03-10 05:18:05 +00:00
|
|
|
#!/usr/bin/env python2
|
|
|
|
#encoding:utf-8
|
|
|
|
#project:indexer_api
|
|
|
|
#license:unlicense (http://unlicense.org/)
|
|
|
|
|
|
|
|
"""Custom exceptions used or raised by indexer_api"""
|
|
|
|
|
|
|
|
from lib.tvdb_api.tvdb_exceptions import \
|
|
|
|
tvdb_exception, tvdb_attributenotfound, tvdb_episodenotfound, tvdb_error, \
|
|
|
|
tvdb_seasonnotfound, tvdb_shownotfound, tvdb_userabort
|
|
|
|
|
|
|
|
indexerExcepts = ["indexer_exception", "indexer_error", "indexer_userabort", "indexer_shownotfound",
|
2014-03-25 05:57:24 +00:00
|
|
|
"indexer_seasonnotfound", "indexer_episodenotfound", "indexer_attributenotfound"]
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
tvdbExcepts = ["tvdb_exception", "tvdb_error", "tvdb_userabort", "tvdb_shownotfound",
|
2014-03-25 05:57:24 +00:00
|
|
|
"tvdb_seasonnotfound", "tvdb_episodenotfound", "tvdb_attributenotfound"]
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# link API exceptions to our exception handler
|
2017-07-18 14:03:32 +00:00
|
|
|
indexer_exception = tvdb_exception
|
|
|
|
indexer_error = tvdb_error
|
|
|
|
indexer_userabort = tvdb_userabort
|
|
|
|
indexer_attributenotfound = tvdb_attributenotfound
|
|
|
|
indexer_episodenotfound = tvdb_episodenotfound
|
|
|
|
indexer_seasonnotfound = tvdb_seasonnotfound
|
|
|
|
indexer_shownotfound = tvdb_shownotfound
|