Skip to content

Commit

Permalink
feat: structured error messages for HEAD reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-20 committed Sep 27, 2024
1 parent dc4e939 commit 1f95e47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bulk_data_service/dataset_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ def check_dataset_etag_last_mod_header(
"but HEAD request to check ETag/Last-Modified "
"return non-200 status. {} "
"HEAD request exception details: {}".format(download_within_hours, extra_err_message, e)
),
"message": "{}".format(e),
}
)
} | e.args[0]
)

context["logger"].warning("dataset id: {} - {}".format(bds_dataset["id"], bds_dataset["head_error_message"]))
Expand Down

0 comments on commit 1f95e47

Please sign in to comment.