Skip to content

Commit

Permalink
fix a couple of flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Feb 1, 2018
1 parent 90e77a2 commit ba24986
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git_aggregator/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -297,8 +297,8 @@ def _github_api_get(self, path):

def show_closed_prs(self):
REPO_RE = re.compile(
'^(https://github.com/|[email protected]:)'
'(?P<owner>.*?)/(?P<repo>.*?)(.git)?$')
'^(https://github.com/|[email protected]:)'
'(?P<owner>.*?)/(?P<repo>.*?)(.git)?$')
PULL_RE = re.compile(
'^(refs/)?pull/(?P<pr>[0-9]+)/head$')
remotes = {r['name']: r['url'] for r in self.remotes}
Expand Down

0 comments on commit ba24986

Please sign in to comment.