summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-02-09 16:36:17 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-02-09 16:36:17 +0100
commit00148a2b195b2ca35054346825efabac81629332 (patch)
treead3d66669d9e6fc9e5f990c918560542e49f2f96
parent812c47c4970ebebe19827d94fd467b9964028ae6 (diff)
Cleanup of error reporting
-rw-r--r--lesana/collection.py6
1 files 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))