mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-07 02:26:28 +02:00
Minor changes
This commit is contained in:
parent
75c2ce0991
commit
33fffefd1d
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ class UnitsParser:
|
||||||
if len(elt) == 2:
|
if len(elt) == 2:
|
||||||
min = int(elt[0])
|
min = int(elt[0])
|
||||||
max = int(elt[1])
|
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))
|
return(range(min,max))
|
||||||
else:
|
else:
|
||||||
return(list(map(int, r.split(","))))
|
return(list(map(int, r.split(","))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue