Skip to content

Commit

Permalink
models.file:File.from_file - fix error with reidentify
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Aug 15, 2024
1 parent bea5207 commit 13a8ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def from_file(
file.warning.append("extension mismatch")
file.warning = file.warning or None
action = file.get_action(actions, file_classes)
elif file.action_data.reidentify and file.action_data.reidentify.onfail:
file.action = file.action_data.reidentify.onfail
elif file.action_data.reidentify and (on_fail := file.action_data.reidentify.on_fail):
file.action = None if on_fail == "null" else file.action
else:
action = None
file.action = "manual"
Expand Down

0 comments on commit 13a8ff5

Please sign in to comment.