From 985a5940aee67ac3015771d2a5cdc80b1457ac2b Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 3 Oct 2024 15:24:32 +1300 Subject: [PATCH] Always set index The index should always be set, because it will be accessed later in the script and generate a runtime error --- i7Import/get_islandora_7_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i7Import/get_islandora_7_content.py b/i7Import/get_islandora_7_content.py index ffc68eb..0f3dc10 100755 --- a/i7Import/get_islandora_7_content.py +++ b/i7Import/get_islandora_7_content.py @@ -78,7 +78,7 @@ headers.append("file") if config["id_field"] not in headers: headers.append(config["id_field"]) - index = config["id_start_number"] +index = config["id_start_number"] if config["fetch_files"] is True: if not os.path.exists(config["obj_directory"]):