diff --git a/src/vlei/server.py b/src/vlei/server.py index d0a9f5b..2304732 100644 --- a/src/vlei/server.py +++ b/src/vlei/server.py @@ -33,6 +33,8 @@ def launch(args): app = falcon.App() server = http.Server(port=int(args.http), app=app) + if not server.reopen(): + raise RuntimeError(f"cannot create http server on port {int(args.http)}") httpServerDoer = http.ServerDoer(server=server) serving.loadEnds(app, schemaDir=args.schemaDir, credDir=args.credDir, oobiDir=args.oobiDir)