From 00148a2b195b2ca35054346825efabac81629332 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 9 Feb 2020 16:36:17 +0100 Subject: Cleanup of error reporting --- lesana/collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lesana/collection.py b/lesana/collection.py index 599d328..8b27f01 100644 --- a/lesana/collection.py +++ b/lesana/collection.py @@ -220,7 +220,7 @@ class Collection(object): try: self.indexer.index_text(v) self.indexer.increase_termpos() - except ValueError as e: + except ValueError: # probably already logged earlier pass doc.set_data(entry.yaml_data) @@ -311,7 +311,7 @@ class Collection(object): return False try: repo = git.Repo(self.basedir, search_parent_directories=True) - except git.exc.InvalidGitRepositoryError as e: + except git.exc.InvalidGitRepositoryError: logging.warning( "Could not find a git repository in {}".format( self.basedir)) @@ -435,7 +435,7 @@ class Collection(object): if git_available and self.settings.get('git', False): try: repo = git.Repo(self.basedir, search_parent_directories=True) - except git.exc.InvalidGitRepositoryError as e: + except git.exc.InvalidGitRepositoryError: logging.warning( "Could not find a git repository in {}".format( self.basedir)) -- cgit v1.2.3