Skip to content

Commit

Permalink
Update ecospheres_migrator/geonetwork.py
Browse files Browse the repository at this point in the history
duh

Co-authored-by: Alexandre Bulté <[email protected]>
  • Loading branch information
streino and abulte authored Sep 7, 2024
1 parent 6b86e2f commit cbddf81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecospheres_migrator/geonetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def update_record(
r = self.session.post(f"{self.api}/records/{uuid}/editor", data=data)
r.raise_for_status()

if state.stage == WorkflowStage.APPROVED:
if state and state.stage == WorkflowStage.APPROVED:
# If the record was already approved, transparently approve the working copy
# we created above when updating the record.
r = self.session.put(
Expand Down

0 comments on commit cbddf81

Please sign in to comment.