--- a/mercurial/ui.py Mon Nov 16 10:56:54 2020 -0800
+++ b/mercurial/ui.py Fri Nov 20 14:43:21 2020 -0800
@@ -466,7 +466,7 @@
try:
cfg.read(filename, fp, sections=sections, remap=remap)
- except error.ParseError as inst:
+ except error.ConfigError as inst:
if trusted:
raise
self.warn(