#1332 check if port is valid

This commit is contained in:
rootzoll
2020-07-16 18:16:12 +02:00
parent af323fa5f6
commit fa247ca582

View File

@@ -383,6 +383,10 @@ def shopOrder(shopUrl, hostid, servicename, torTarget, duration, msatsFirst, msa
if loopCount > 120:
raise BlitzError("timeout bridge not getting ready", bridge)
print("#### Check if port is valid ...")
if not bridge['port'].isdigit():
raise BlitzError("invalid port", bridge)
print("#### Check if duration delivered is as advertised ...")
contract_breached = False
warning_text = ""
@@ -660,6 +664,7 @@ More information on the service you can find under:
if (be.errorShort == "timeout on waiting for extending bridge" or
be.errorShort == "fail on subscription storage" or
be.errorShort == "invalid port" or
be.errorShort == "timeout bridge not getting ready") :
# error happend after payment