mercurial/hgweb/server.py
changeset 52640 24ee91ba9aa8
parent 52366 c9baa3541b20
child 52641 9bd6854aab86
--- a/mercurial/hgweb/server.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/mercurial/hgweb/server.py	Sun Jan 05 21:03:17 2025 -0500
@@ -409,7 +409,7 @@
     port = urlutil.getport(ui.config(b'web', b'port'))
     try:
         return cls(ui, app, (address, port), handler)
-    except socket.error as inst:
+    except OSError as inst:
         raise error.Abort(
             _(b"cannot start server at '%s:%d': %s")
             % (address, port, encoding.strtolocal(inst.args[1]))