Skip to content

Commit

Permalink
replacing accidental deletion of error message
Browse files Browse the repository at this point in the history
  • Loading branch information
LAShemilt committed Mar 20, 2023
1 parent f78b684 commit d6f5daf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyscicat/client.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from datetime import datetime
import enum

import base64
import hashlib
import logging
import json
import re
from typing import Optional
from urllib.parse import urljoin, quote_plus

Expand Down Expand Up @@ -129,6 +129,8 @@ def _call_endpoint(
if (
allow_404
and response.status_code == 404
and re.match(r"Unknown (.+ )?id", err.get("message", ""))

):
# The operation failed but because the object does not exist in SciCat.
logger.error("Error in operation %s: %s", operation, err)
Expand Down

0 comments on commit d6f5daf

Please sign in to comment.