hgext/largefiles/overrides.py
changeset 36653 2f7a3c90c0d7
parent 36400 7b86aa31b004
child 36736 5c72b52d3dd0
--- a/hgext/largefiles/overrides.py	Sat Mar 03 14:28:51 2018 -0500
+++ b/hgext/largefiles/overrides.py	Fri Mar 02 07:13:33 2018 +0530
@@ -598,7 +598,7 @@
     try:
         result = orig(ui, repo, pats, opts, rename)
     except error.Abort as e:
-        if str(e) != _('no files to copy'):
+        if pycompat.bytestr(e) != _('no files to copy'):
             raise e
         else:
             nonormalfiles = True
@@ -705,7 +705,7 @@
                 lfdirstate.add(destlfile)
         lfdirstate.write()
     except error.Abort as e:
-        if str(e) != _('no files to copy'):
+        if pycompat.bytestr(e) != _('no files to copy'):
             raise e
         else:
             nolfiles = True