From: Michael Tremer Date: Wed, 3 Jun 2020 16:33:44 +0000 (+0000) Subject: location-exporter: Warn, but do not fail on invalid input X-Git-Tag: 0.9.2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92af07adfb1e06fe1b055fbcf5ba61159637cd73;p=location%2Flibloc.git location-exporter: Warn, but do not fail on invalid input Signed-off-by: Michael Tremer --- diff --git a/src/python/location-exporter.in b/src/python/location-exporter.in index 5454561..d82f1d3 100644 --- a/src/python/location-exporter.in +++ b/src/python/location-exporter.in @@ -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: