From ba249868ff0cdf5aa652462d5396a5feb21e9f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Thu, 1 Feb 2018 21:54:15 +0100 Subject: [PATCH] fix a couple of flake8 issues --- git_aggregator/repo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git_aggregator/repo.py b/git_aggregator/repo.py index 86d5d68..d6797dc 100644 --- a/git_aggregator/repo.py +++ b/git_aggregator/repo.py @@ -123,7 +123,7 @@ def init_git_version(cls, v_str): try: version = cls._git_version = tuple( int(x) for x in v_str.split()[2].split('.')[:3]) - except: + except Exception: raise ValueError("Could not parse git version output %r. Please " "report this" % v_str) return version @@ -297,8 +297,8 @@ def _github_api_get(self, path): def show_closed_prs(self): REPO_RE = re.compile( - '^(https://github.com/|git@github.com:)' - '(?P.*?)/(?P.*?)(.git)?$') + '^(https://github.com/|git@github.com:)' + '(?P.*?)/(?P.*?)(.git)?$') PULL_RE = re.compile( '^(refs/)?pull/(?P[0-9]+)/head$') remotes = {r['name']: r['url'] for r in self.remotes}