changeset 49975:562f7da122b5

bundlerepo: raise `error.LookupError` instead of `LookupError` I'm pretty sure that this was the intention, given `error.LookupError` is raised a few lines above with the same arguments. Note that PyCharm complains about `self.display_id` (and the use above this too) being `() -> Any` instead of `bytes`, but it may be confused about the `util.propertycache` annotation on it.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 30 Jan 2023 16:59:15 -0500
parents 90f047edab4f
children afa9d73780e1
files mercurial/bundlerepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Mon Jan 30 16:49:41 2023 -0500
+++ b/mercurial/bundlerepo.py	Mon Jan 30 16:59:15 2023 -0500
@@ -88,7 +88,7 @@
                     )
 
             if not self.index.has_node(deltabase):
-                raise LookupError(
+                raise error.LookupError(
                     deltabase, self.display_id, _(b'unknown delta base')
                 )