summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-11 09:18:38 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-11 09:18:38 +0200
commit33fffefd1d39ac20cf9a296dfe667b3520a1ee6b (patch)
tree308c6b1395e3f7195bfaea52a177e64242b98e3f
parent75c2ce0991dabccfaad5b6f1d72175566ce75467 (diff)
Minor changes
-rw-r--r--esds/helpers/platform.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/esds/helpers/platform.py b/esds/helpers/platform.py
index 7112ebc..fdbf29e 100644
--- a/esds/helpers/platform.py
+++ b/esds/helpers/platform.py
@@ -11,7 +11,8 @@ class UnitsParser:
if len(elt) == 2:
min = int(elt[0])
max = int(elt[1])
- # TODO: Check min/max
+ if min < 0 or max > limit:
+ raise Exception("Outside of range limit [0-"+str(limit)+"]")
return(range(min,max))
else:
return(list(map(int, r.split(","))))