##// END OF EJS Templates
localrepo: fix conversion of exceptions to strings flagged by pytype...
Matt Harbison -
r47412:d5d9177c 5.7.1 stable
parent child Browse files
Show More
@@ -540,7 +540,7 b' def makelocalrepository(baseui, path, in'
540 except ValueError as e:
540 except ValueError as e:
541 # Can be raised on Python 3.8 when path is invalid.
541 # Can be raised on Python 3.8 when path is invalid.
542 raise error.Abort(
542 raise error.Abort(
543 _(b'invalid path %s: %s') % (path, pycompat.bytestr(e))
543 _(b'invalid path %s: %s') % (path, stringutil.forcebytestr(e))
544 )
544 )
545
545
546 raise error.RepoError(_(b'repository %s not found') % path)
546 raise error.RepoError(_(b'repository %s not found') % path)
General Comments 0
You need to be logged in to leave comments. Login now