diff hgext/gpg.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 f3ba4125d9e9
children 38caf405d010
line wrap: on
line diff
--- a/hgext/gpg.py	Sat May 12 16:00:58 2012 +0200
+++ b/hgext/gpg.py	Sat May 12 16:02:45 2012 +0200
@@ -43,7 +43,7 @@
                 try:
                     if f:
                         os.unlink(f)
-                except:
+                except OSError:
                     pass
         keys = []
         key, fingerprint = None, None