hgext/eol.py
branchstable
changeset 23068 fb3e63c603e8
parent 20870 6500a2eebee8
child 23877 7cc77030c557
--- a/hgext/eol.py	Wed Oct 15 03:52:20 2014 -0700
+++ b/hgext/eol.py	Wed Oct 22 16:10:23 2014 +0200
@@ -333,10 +333,10 @@
             for f in sorted(ctx.added() + ctx.modified()):
                 if not self._eolfile(f):
                     continue
-                try:
-                    data = ctx[f].data()
-                except IOError:
+                fctx = ctx[f]
+                if fctx is None:
                     continue
+                data = fctx.data()
                 if util.binary(data):
                     # We should not abort here, since the user should
                     # be able to say "** = native" to automatically