From 92af07adfb1e06fe1b055fbcf5ba61159637cd73 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 3 Jun 2020 16:33:44 +0000 Subject: [PATCH] location-exporter: Warn, but do not fail on invalid input Signed-off-by: Michael Tremer --- src/python/location-exporter.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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: -- 2.47.2