summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))