File: tvdb_exceptions.py

package info (click to toggle)
tvdb-api 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 224 kB
  • sloc: python: 2,168; makefile: 12
file content (28 lines) | stat: -rw-r--r-- 827 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvdb_api
#repository:http://github.com/dbr/tvdb_api
#license:unlicense (http://unlicense.org/)

"""Custom exceptions used or raised by tvdb_api
"""

__author__ = "dbr/Ben"
__version__ = "2.0"

import logging

__all__ = ["tvdb_error", "tvdb_userabort", "tvdb_notauthorized", "tvdb_shownotfound",
"tvdb_seasonnotfound", "tvdb_episodenotfound", "tvdb_attributenotfound",
"tvdb_resourcenotfound", "tvdb_invalidlanguage"]

logging.getLogger(__name__).warning(
    "tvdb_exceptions module is deprecated - use classes directly from tvdb_api instead")

from tvdb_api import (
    tvdb_error, tvdb_userabort, tvdb_notauthorized, tvdb_shownotfound,
    tvdb_seasonnotfound, tvdb_episodenotfound,
    tvdb_resourcenotfound, tvdb_invalidlanguage,
    tvdb_attributenotfound
)