From eca1db86222ff7657b0285bb61eb42883d11e5a8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Dec 2020 14:59:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pylast/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 6f0ea9d..cd9ee21 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -785,7 +785,7 @@ class _ShelfCacheBackend: """Used as a backend for caching cacheable requests.""" def __init__(self, file_path=None): - self.shelf = shelve.open(file_path, flag='n') + self.shelf = shelve.open(file_path, flag="n") self.cache_keys = set(self.shelf.keys()) def __contains__(self, key): @@ -1398,6 +1398,7 @@ class _Taggable(_BaseObject): class PyLastError(Exception): """Generic exception raised by PyLast""" + pass