mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Don't use assertion for expected error
This commit is contained in:
parent
7096ab74e8
commit
a9804dd550
1 changed files with 2 additions and 1 deletions
|
@ -260,7 +260,8 @@ def serve(configuration, shutdown_socket=None):
|
|||
logger.info("Listening on %r%s",
|
||||
format_address(server.server_address),
|
||||
" with SSL" if use_ssl else "")
|
||||
assert servers, "no servers started"
|
||||
if not servers:
|
||||
raise RuntimeError("No servers started")
|
||||
|
||||
# Mainloop
|
||||
select_timeout = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue