hgext/largefiles/overrides.py
changeset 45682 d2e1dcd4490d
parent 45557 2c86b9587740
child 45942 89a2afe31e82
--- a/hgext/largefiles/overrides.py	Thu Oct 08 15:35:44 2020 -0700
+++ b/hgext/largefiles/overrides.py	Thu Oct 08 13:37:31 2020 -0700
@@ -734,7 +734,7 @@
         try:
             result = orig(ui, repo, pats, opts, rename)
         except error.Abort as e:
-            if pycompat.bytestr(e) != _(b'no files to copy'):
+            if e.message != _(b'no files to copy'):
                 raise e
             else:
                 nonormalfiles = True
@@ -851,7 +851,7 @@
                 lfdirstate.add(destlfile)
         lfdirstate.write()
     except error.Abort as e:
-        if pycompat.bytestr(e) != _(b'no files to copy'):
+        if e.message != _(b'no files to copy'):
             raise e
         else:
             nolfiles = True