summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-23 12:15:10 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-23 12:15:10 +0200
commit78e7715cde06aa3ee3dee853f8bc6ea12a350db0 (patch)
treec1b6f75e430c204103d73ff86a9e6cc38b64f961
parent48aad32549c70a1f447741f206d72269b4e860f0 (diff)
downloadtaler-merchant-demos-78e7715cde06aa3ee3dee853f8bc6ea12a350db0.tar.gz
taler-merchant-demos-78e7715cde06aa3ee3dee853f8bc6ea12a350db0.tar.bz2
taler-merchant-demos-78e7715cde06aa3ee3dee853f8bc6ea12a350db0.zip
fix #6507
-rwxr-xr-xbin/taler-merchant-demos8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/taler-merchant-demos b/bin/taler-merchant-demos
index 9cc7516..780582c 100755
--- 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",