Fix validation - catch min > max

This commit is contained in:
Robert Chacón 2022-09-12 09:35:22 -06:00 committed by GitHub
parent 1774579acc
commit 938075b8fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,8 +192,10 @@ def validateNetworkAndDevices():
try:
if int(downloadMin) > int(downloadMax):
warnings.warn("Provided downloadMin '" + downloadMin + "' in ShapedDevices.csv at row " + str(rowNum) + " is greater than downloadMax")
devicesValidatedOrNot = False
if int(uploadMin) > int(uploadMax):
warnings.warn("Provided uploadMin '" + downloadMin + "' in ShapedDevices.csv at row " + str(rowNum) + " is greater than uploadMax")
devicesValidatedOrNot = False
except:
devicesValidatedOrNot = False