diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
commit | 80d90d9b204f7c17912740f9f414fe5d59f293ba (patch) | |
tree | 5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/python-modules/imdbpy/sql_error.patch | |
parent | 3a31a84c7d3e589035ad08499206aac44a81f424 (diff) | |
parent | 83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff) |
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/imdbpy/sql_error.patch')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/imdbpy/sql_error.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/imdbpy/sql_error.patch b/infra/libkookie/nixpkgs/pkgs/development/python-modules/imdbpy/sql_error.patch new file mode 100644 index 000000000000..10770f4f1135 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/imdbpy/sql_error.patch @@ -0,0 +1,39 @@ +diff --git a/imdb/parser/sql/__init__.py b/imdb/parser/sql/__init__.py +index cd4a3e3..3fcfdd4 100644 +--- a/imdb/parser/sql/__init__.py ++++ b/imdb/parser/sql/__init__.py +@@ -557,7 +557,6 @@ class IMDbSqlAccessSystem(IMDbBase): + """The class used to access IMDb's data through a SQL database.""" + + accessSystem = 'sql' +- _sql_logger = logging.getLogger('imdbpy.parser.sql') + + def __init__(self, uri, adultSearch=True, *arguments, **keywords): + """Initialize the access system.""" +@@ -582,7 +581,7 @@ class IMDbSqlAccessSystem(IMDbBase): + except ImportError as e: + raise IMDbError('unable to import SQLAlchemy') + # Set the connection to the database. +- self._sql_logger.debug('connecting to %s', uri) ++ logger.debug('connecting to %s', uri) + try: + self._connection = setConnection(uri, DB_TABLES) + except AssertionError as e: +@@ -593,7 +592,7 @@ class IMDbSqlAccessSystem(IMDbBase): + # Maps some IDs to the corresponding strings. + self._kind = {} + self._kindRev = {} +- self._sql_logger.debug('reading constants from the database') ++ logger.debug('reading constants from the database') + try: + for kt in KindType.select(): + self._kind[kt.id] = kt.kind +@@ -1616,7 +1615,7 @@ class IMDbSqlAccessSystem(IMDbBase): + return + if not hasattr(self, '_connection'): + return +- self._sql_logger.debug('closing connection to the database') ++ logger.debug('closing connection to the database') + try: + self._connection.close() + except: |