Skip to content

Commit

Permalink
fix(wip): Working on migration problems
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Nov 4, 2024
1 parent 653901c commit b4b6db4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invenio_record_importer_kcworks/services/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ def handle_record_files(
first_file = next(iter(file_data["entries"]))
if isinstance(first_file, dict) and "key" in first_file.keys():
first_file = first_file["key"]
app.logger.warning("no type error")
except TypeError: # entries are not an iterator - why???
first_file = list(file_data["entries"].keys())[0]
app.logger.warning("type error")
app.logger.warning("first file: %s", first_file)
app.logger.warning("type of first file: %s", type(first_file))

Expand Down

0 comments on commit b4b6db4

Please sign in to comment.