Skip to content

Commit

Permalink
Always set index
Browse files Browse the repository at this point in the history
The index should always be set, because it will be accessed later in the script and generate a runtime error
  • Loading branch information
newzealandpaul authored Oct 3, 2024
1 parent cb7772b commit 985a594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i7Import/get_islandora_7_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand Down

0 comments on commit 985a594

Please sign in to comment.