mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 04:26:28 +02:00
#1332 check if port is valid
This commit is contained in:
@@ -383,6 +383,10 @@ def shopOrder(shopUrl, hostid, servicename, torTarget, duration, msatsFirst, msa
|
|||||||
if loopCount > 120:
|
if loopCount > 120:
|
||||||
raise BlitzError("timeout bridge not getting ready", bridge)
|
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 ...")
|
print("#### Check if duration delivered is as advertised ...")
|
||||||
contract_breached = False
|
contract_breached = False
|
||||||
warning_text = ""
|
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
|
if (be.errorShort == "timeout on waiting for extending bridge" or
|
||||||
be.errorShort == "fail on subscription storage" or
|
be.errorShort == "fail on subscription storage" or
|
||||||
|
be.errorShort == "invalid port" or
|
||||||
be.errorShort == "timeout bridge not getting ready") :
|
be.errorShort == "timeout bridge not getting ready") :
|
||||||
|
|
||||||
# error happend after payment
|
# error happend after payment
|
||||||
|
Reference in New Issue
Block a user