--- 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