gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] 06/14: fix #6507


From: gnunet
Subject: [taler-taler-merchant-demos] 06/14: fix #6507
Date: Sun, 06 Sep 2020 11:20:23 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository taler-merchant-demos.

commit 78e7715cde06aa3ee3dee853f8bc6ea12a350db0
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 23 12:15:10 2020 +0200

    fix #6507
---
 bin/taler-merchant-demos | 8 ++++++--
 1 file 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",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]