mercurial/localrepo.py
changeset 44943 9e5b4dbe8ff2
parent 44941 edd08aa193fb
child 45015 5797dbb630df
equal deleted inserted replaced
44942:25512a65cefd 44943:9e5b4dbe8ff2
   507         try:
   507         try:
   508             hgvfs.stat()
   508             hgvfs.stat()
   509         except OSError as e:
   509         except OSError as e:
   510             if e.errno != errno.ENOENT:
   510             if e.errno != errno.ENOENT:
   511                 raise
   511                 raise
       
   512         except ValueError as e:
       
   513             # Can be raised on Python 3.8 when path is invalid.
       
   514             raise error.Abort(
       
   515                 _(b'invalid path %s: %s') % (path, pycompat.bytestr(e))
       
   516             )
   512 
   517 
   513         raise error.RepoError(_(b'repository %s not found') % path)
   518         raise error.RepoError(_(b'repository %s not found') % path)
   514 
   519 
   515     # .hg/requires file contains a newline-delimited list of
   520     # .hg/requires file contains a newline-delimited list of
   516     # features/capabilities the opener (us) must have in order to use
   521     # features/capabilities the opener (us) must have in order to use