diff hgext/mq.py @ 16688:cfb6682961b8

cleanup: replace naked excepts with more specific ones
author Brodie Rao <brodie@sf.io>
date Sat, 12 May 2012 16:02:45 +0200
parents e34106fa0dc3
children f366d4c2ff34
line wrap: on
line diff
--- a/hgext/mq.py	Sat May 12 16:00:58 2012 +0200
+++ b/hgext/mq.py	Sat May 12 16:02:45 2012 +0200
@@ -1084,7 +1084,7 @@
                 patchpath = self.join(patchfn)
                 try:
                     os.unlink(patchpath)
-                except:
+                except OSError:
                     self.ui.warn(_('error unlinking %s\n') % patchpath)
                 raise
             self.removeundo(repo)