From 381a7ff3df2b85335faeae002f8668556ca9c53e Mon Sep 17 00:00:00 2001 From: Alex Bsk Date: Sat, 6 Jan 2024 17:46:09 +0300 Subject: [PATCH] Update ombott.py changed banner --- ombott/ombott.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ombott/ombott.py b/ombott/ombott.py index c01b226..0796d03 100644 --- a/ombott/ombott.py +++ b/ombott/ombott.py @@ -70,7 +70,8 @@ def run(app=None, server='wsgiref', host='127.0.0.1', port=8080, server.quiet = server.quiet or quiet if not server.quiet: _stderr("Ombott v%s server starting up (using %s)...\n" % (__version__, repr(server))) - _stderr(f"Listening on http{'s' if kwargs.get('certfile', None) else ''}://{server.host}:{server.port}/\n") + if not server.host.startswith('unix:/'): + _stderr(f"Listening on http{'s' if kwargs.get('certfile', None) else ''}://{server.host}:{server.port}/\n") _stderr("Hit Ctrl-C to quit.\n\n") server.run(app) except KeyboardInterrupt: