mercurial/branchmap.py
changeset 51462 de1bc7db9f61
parent 51461 47752632b4fc
child 51463 87b830e4de35
--- a/mercurial/branchmap.py	Mon Feb 26 15:12:20 2024 +0100
+++ b/mercurial/branchmap.py	Mon Feb 26 15:15:10 2024 +0100
@@ -496,13 +496,11 @@
         except Exception as inst:
             if repo.ui.debugflag:
                 msg = b'invalid %s: %s\n'
-                repo.ui.debug(
-                    msg
-                    % (
-                        _branchcachedesc(repo),
-                        stringutil.forcebytestr(inst),
-                    )
+                msg %= (
+                    _branchcachedesc(repo),
+                    stringutil.forcebytestr(inst),
                 )
+                repo.ui.debug(msg)
             bcache = None
 
         finally: