Mercurial > hg
comparison hgext/mq.py @ 16689:f366d4c2ff34
cleanup: replace naked excepts with except Exception: ...
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:02:46 +0200 |
parents | cfb6682961b8 |
children | d947e1da1259 |
comparison
equal
deleted
inserted
replaced
16688:cfb6682961b8 | 16689:f366d4c2ff34 |
---|---|
611 n = newcommit(repo, None, ctx.description(), ctx.user(), force=True) | 611 n = newcommit(repo, None, ctx.description(), ctx.user(), force=True) |
612 if n is None: | 612 if n is None: |
613 raise util.Abort(_("repo commit failed")) | 613 raise util.Abort(_("repo commit failed")) |
614 try: | 614 try: |
615 ph = patchheader(mergeq.join(patch), self.plainmode) | 615 ph = patchheader(mergeq.join(patch), self.plainmode) |
616 except: | 616 except Exception: |
617 raise util.Abort(_("unable to read %s") % patch) | 617 raise util.Abort(_("unable to read %s") % patch) |
618 | 618 |
619 diffopts = self.patchopts(diffopts, patch) | 619 diffopts = self.patchopts(diffopts, patch) |
620 patchf = self.opener(patch, "w") | 620 patchf = self.opener(patch, "w") |
621 comments = str(ph) | 621 comments = str(ph) |