diff hgext/convert/monotone.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/convert/monotone.py	Sat May 12 16:00:58 2012 +0200
+++ b/hgext/convert/monotone.py	Sat May 12 16:02:45 2012 +0200
@@ -30,7 +30,7 @@
                 f = file(path, 'rb')
                 header = f.read(16)
                 f.close()
-            except:
+            except IOError:
                 header = ''
             if header != 'SQLite format 3\x00':
                 raise norepo