Skip to content

Commit

Permalink
Fix logging message.
Browse files Browse the repository at this point in the history
  • Loading branch information
YooSunYoung committed Oct 2, 2024
1 parent a1988c2 commit cce2dae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scicat_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def check_dataset_by_pid(
dataset_exists: bool
if not response.ok:
logger.error(
"Failed to check dataset existence by job id with status code: %s. "
"Failed to check dataset existence by pid with status code: %s. "
"Error message from scicat backend: \n%s\n"
"Assuming the dataset does not exist.",
response.status_code,
Expand Down Expand Up @@ -157,9 +157,10 @@ def check_dataset_by_metadata(
dataset_exists: bool
if not response.ok:
logger.error(
"Failed to check dataset existence metadata with status code: %s. "
"Failed to check dataset existence by metadata key %s with status code: %s "
"Error message from scicat backend: \n%s\n"
"Assuming the dataset does not exist.",
metadata_key,
response.status_code,
response.reason,
)
Expand Down

0 comments on commit cce2dae

Please sign in to comment.