diff hgext/patchbomb.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 525fdb738975
children 38caf405d010
line wrap: on
line diff
--- a/hgext/patchbomb.py	Sat May 12 16:00:58 2012 +0200
+++ b/hgext/patchbomb.py	Sat May 12 16:02:45 2012 +0200
@@ -304,7 +304,7 @@
         finally:
             try:
                 os.unlink(tmpfn)
-            except:
+            except OSError:
                 pass
             os.rmdir(tmpdir)