Skip to content

Commit

Permalink
Merge pull request #162 from michaelgwood/pw-client-fix
Browse files Browse the repository at this point in the history
git-pw: Catch the HttpError caused by an invalid series id
  • Loading branch information
dlespiau committed Mar 3, 2016
2 parents 1b41da9 + 33eafe0 commit 4e5946c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-pw/git-pw
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,11 @@ class GitPatchwork(object):
return (series, revision)

def do_apply(self):
(series, revision) = self.cmd_get_series_revision()

print('Applying series: %s (rev %d)' % (series.name, series.version))
try:
(series, revision) = self.cmd_get_series_revision()
print('Applying series: %s (rev %d)' % (series.name,
series.version))

try:
return self.am(revision.absolute_url('/mbox/'))
except HttpError as e:
if e.status_code != 404:
Expand Down

0 comments on commit 4e5946c

Please sign in to comment.