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}