Skip to content

Commit

Permalink
Update dds_cli/data_putter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ina Odén Österbo <[email protected]>
  • Loading branch information
valyo and i-oden authored Oct 12, 2023
1 parent 413417e commit 8ff77e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dds_cli/data_putter.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ def put(
)
LOG.warning("Attempting to add them to the database.")

path_to_file = str(putter.failed_delivery_log)
with open(path_to_file, "r", encoding="utf-8") as json_f:
with putter.failed_delivery_log.open(mode= "r", encoding="utf-8") as json_f:
failed = json.load(json_f)

# remove from log any files that failed for other reasons
Expand Down

0 comments on commit 8ff77e1

Please sign in to comment.