diff options
-rwxr-xr-x | bin/taler-merchant-demos | 8 |
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", |