Skip to content

Commit

Permalink
fix: Debugging new refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Nov 16, 2024
1 parent ff39115 commit 8e921c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion invenio_record_importer_kcworks/services/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ def handle_record_files(
# If we're updating a draft of a published record, we need to
# unlock the published record files before we can upload new
# files.
need_to_unlock = existing_record.get("is_published")
need_to_unlock = (
existing_record.get("is_published")
if existing_record
else False
)
record = None

if need_to_unlock:
Expand Down

0 comments on commit 8e921c0

Please sign in to comment.