Prevent not having any sections at all for argparseSections
This commit is contained in:
parent
45e9fdc68a
commit
182d222f01
|
@ -173,6 +173,9 @@ def argparseSections(s):
|
|||
except ValueError:
|
||||
raise argparse.ArgumentTypeError("Don't understand sections string")
|
||||
|
||||
if not result:
|
||||
result.append(0.0)
|
||||
|
||||
return result
|
||||
|
||||
class ArgparseEdgeType:
|
||||
|
|
Loading…
Reference in New Issue