diff --git a/src/python/location-importer.in b/src/python/location-importer.in
index bec0b62..da058d3 100644
--- a/src/python/location-importer.in
+++ b/src/python/location-importer.in
@@ -702,6 +702,7 @@ class CLI(object):
 				if validcountries and invalidcountries:
 					log.warning("Skipping network with bogus countr(y|ies) %s (original countries: %s): %s" % \
 						(invalidcountries, inetnum.get("country"), inetnum.get("inet6num") or inetnum.get("inetnum")))
+					break
 
 				# Everything is fine here, run INSERT statement...
 				self.db.execute("INSERT INTO _rirdata(network, country, original_countries, source) \
