]> git.ipfire.org Git - location/libloc.git/commitdiff
importer: Fix another variable error in CSV parser
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Mar 2024 13:56:36 +0000 (13:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Mar 2024 13:56:36 +0000 (13:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index f9c068e6c31acfce5334b70be94a5e390eb87ba9..c9fd9a8edf47969f45a985ff9b5bfbaa89575442 100644 (file)
@@ -965,7 +965,7 @@ class CLI(object):
 
        async def _import_arin_as_names(self, source, countries, f, *args):
                # Walk through the file
-               for line in csv.DictReader(feed, dialect="arin"):
+               for line in csv.DictReader(f, dialect="arin"):
                        log.debug("Processing object: %s" % line)
 
                        # Fetch status