[diffoscope] 01/01: comparators/utils/file: drop unneeded 'as e' in except

Mattia Rizzolo mattia at debian.org
Sat Jan 7 21:08:55 CET 2017

This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository diffoscope.

commit 8bf8d351ef430d8c5835aba01c09ba5f68a5efb5
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Jan 7 21:08:45 2017 +0100

    comparators/utils/file: drop unneeded 'as e' in except
    Gbp-Dch: Ignore
 diffoscope/comparators/utils/file.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils/file.py b/diffoscope/comparators/utils/file.py
index 1cf1598..8bc7c53 100644
--- a/diffoscope/comparators/utils/file.py
+++ b/diffoscope/comparators/utils/file.py
@@ -107,7 +107,7 @@ class File(object, metaclass=abc.ABCMeta):
             logger.debug('instantiating %s for %s', self.__class__.CONTAINER_CLASS, self)
                 self._as_container = self.__class__.CONTAINER_CLASS(self)
-            except RequiredToolNotFound as e:
+            except RequiredToolNotFound:
                 return None
         logger.debug('returning a %s for %s', self._as_container.__class__, self)
         return self._as_container

Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git

More information about the diffoscope mailing list