Commit 15b394da authored by Joao Vieira's avatar Joao Vieira Committed by Brian May

Fix #117 to allow for no subnets via file (-s)

This should fix an issue introduced in #117 where when no subnets are
given via file (-s file) the variable is None instead of an empty list
and the concatenation with the subnets given as positional parameters
fails.
parent 0ed5ef9a
...@@ -270,6 +270,7 @@ parser.add_argument( ...@@ -270,6 +270,7 @@ parser.add_argument(
metavar="PATH", metavar="PATH",
action=Concat, action=Concat,
dest="subnets_file", dest="subnets_file",
default=[],
type=parse_subnet_file, type=parse_subnet_file,
help=""" help="""
file where the subnets are stored, instead of on the command line file where the subnets are stored, instead of on the command line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment