2014-03-10 01:18:05 -04:00
|
|
|
#!/usr/bin/env python2
|
2014-11-24 21:47:14 -05:00
|
|
|
# encoding:utf-8
|
2014-03-10 01:18:05 -04:00
|
|
|
#author:echel0n
|
|
|
|
#project:indexer_api
|
|
|
|
#repository:http://github.com/echel0n/Sick-Beard
|
|
|
|
#license:unlicense (http://unlicense.org/)
|
|
|
|
|
|
|
|
"""Custom exceptions used or raised by indexer_api"""
|
|
|
|
|
|
|
|
__author__ = "echel0n"
|
|
|
|
__version__ = "1.0"
|
|
|
|
|
|
|
|
from lib.tvrage_api.tvrage_exceptions import \
|
|
|
|
tvrage_exception, tvrage_attributenotfound, tvrage_episodenotfound, tvrage_error, \
|
2014-11-24 21:47:14 -05:00
|
|
|
tvrage_seasonnotfound, tvrage_shownotfound, tvrage_showincomplete, tvrage_userabort
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
from lib.tvdb_api.tvdb_exceptions import \
|
|
|
|
tvdb_exception, tvdb_attributenotfound, tvdb_episodenotfound, tvdb_error, \
|
2014-11-24 21:47:14 -05:00
|
|
|
tvdb_seasonnotfound, tvdb_shownotfound, tvdb_showincomplete, tvdb_userabort
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
indexerExcepts = ["indexer_exception", "indexer_error", "indexer_userabort", "indexer_shownotfound",
|
2014-11-24 21:47:14 -05:00
|
|
|
"indexer_showincomplete",
|
2014-03-25 01:57:24 -04:00
|
|
|
"indexer_seasonnotfound", "indexer_episodenotfound", "indexer_attributenotfound"]
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-24 21:47:14 -05:00
|
|
|
tvdbExcepts = ["tvdb_exception", "tvdb_error", "tvdb_userabort", "tvdb_shownotfound", "tvdb_showincomplete",
|
2014-03-25 01:57:24 -04:00
|
|
|
"tvdb_seasonnotfound", "tvdb_episodenotfound", "tvdb_attributenotfound"]
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-11-24 21:47:14 -05:00
|
|
|
tvrageExcepts = ["tvdb_exception", "tvrage_error", "tvrage_userabort", "tvrage_shownotfound", "tvrage_showincomplete",
|
2014-03-25 01:57:24 -04:00
|
|
|
"tvrage_seasonnotfound", "tvrage_episodenotfound", "tvrage_attributenotfound"]
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
# link API exceptions to our exception handler
|
|
|
|
indexer_exception = tvdb_exception, tvrage_exception
|
|
|
|
indexer_error = tvdb_error, tvrage_error
|
|
|
|
indexer_userabort = tvdb_userabort, tvrage_userabort
|
|
|
|
indexer_attributenotfound = tvdb_attributenotfound, tvrage_attributenotfound
|
|
|
|
indexer_episodenotfound = tvdb_episodenotfound, tvrage_episodenotfound
|
|
|
|
indexer_seasonnotfound = tvdb_seasonnotfound, tvrage_seasonnotfound
|
2014-11-24 21:47:14 -05:00
|
|
|
indexer_shownotfound = tvdb_shownotfound, tvrage_shownotfound
|
|
|
|
indexer_showincomplete = tvdb_showincomplete, tvrage_showincomplete
|