Skip to content

Commit

Permalink
Don't use assertion for expected error
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Oct 4, 2020
1 parent 7096ab7 commit a9804dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radicale/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9804dd

Please sign in to comment.