commit 78e7715cde06aa3ee3dee853f8bc6ea12a350db0
parent 48aad32549c70a1f447741f206d72269b4e860f0
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 23 Aug 2020 12:15:10 +0200
fix #6507
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/bin/taler-merchant-demos b/bin/taler-merchant-demos
@@ -27,7 +27,7 @@ import argparse
import sys
import os
import site
-from taler.util.talerconfig import TalerConfig
+from taler.util.talerconfig import TalerConfig, ConfigurationError
LOGGER = logging.getLogger(__name__)
# No perfect match to our logging format, but good enough ...
@@ -72,7 +72,11 @@ def handle_serve_uwsgi(config, whichShop):
# @param args command line options.
def handle_serve_http(config, whichShop, port=None):
if port is None:
- port = config[whichShop]["http_port"].value_int(required=True)
+ try:
+ port = config[whichShop]["http_port"].value_int(required=True)
+ except ConfigurationError as ce:
+ print(ce)
+ exit(1)
spec = ":%d" % (port,)
try:
os.execlp("uwsgi", "uwsgi",