diff -r 9db77d46de79 -r 24ee91ba9aa8 mercurial/config.py --- a/mercurial/config.py Mon Jan 06 14:15:40 2025 -0500 +++ b/mercurial/config.py Sun Jan 05 21:03:17 2025 -0500 @@ -196,7 +196,7 @@ expanded = util.expandpath(m.group(1)) try: include(expanded, remap=remap, sections=sections) - except IOError as inst: + except OSError as inst: if inst.errno != errno.ENOENT: raise error.ConfigError( _(b"cannot include %s (%s)")