]> git.ipfire.org Git - location/libloc.git/blobdiff - src/python/location-importer.in
location-import: Abort when we could not parse the prefix
[location/libloc.git] / src / python / location-importer.in
index f1da3e4289f1e43f9e516532f9ecf031d685bb75..0551cf6605b9a58426df329ff3342d1fb875912d 100644 (file)
@@ -422,6 +422,7 @@ class CLI(object):
                        prefix = int(prefix)
                except:
                        log.warning("Invalid prefix: %s" % prefix)
+                       return
 
                # Fix prefix length for IPv4
                if type == "ipv4":