Commit 92af07ad authored by Michael Tremer's avatar Michael Tremer

location-exporter: Warn, but do not fail on invalid input

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 141b1099
......@@ -270,8 +270,12 @@ class CLI(object):
countries.append(object)
else:
log.error("Invalid argument: %s" % object)
return 2
log.warning("Invalid argument: %s" % object)
continue
if not countries and not asns:
log.error("Nothing to export")
return 2
# Open the database
try:
......
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