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:
|
except ValueError:
|
||||||
raise argparse.ArgumentTypeError("Don't understand sections string")
|
raise argparse.ArgumentTypeError("Don't understand sections string")
|
||||||
|
|
||||||
|
if not result:
|
||||||
|
result.append(0.0)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
class ArgparseEdgeType:
|
class ArgparseEdgeType:
|
||||||
|
|
Loading…
Reference in New Issue