We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66dc0c6 commit b0837bdCopy full SHA for b0837bd
2 files changed
src/folioclient/FolioClient.py
@@ -2452,4 +2452,4 @@ def prepare_payload(payload: Dict | str) -> bytes:
2452
elif isinstance(payload, str):
2453
return payload.encode("utf-8")
2454
else:
2455
- raise TypeError("Payload must be a dictionary or a string.")
+ raise TypeError(f"Payload must be a dictionary or a string, got {type(payload).__name__}")
src/folioclient/_httpx.py
@@ -69,7 +69,7 @@ def tenant_id(self) -> str:
69
@tenant_id.setter
70
def tenant_id(self, value: str):
71
if value != self._tenant_id:
72
- logger.debug("Setting tenant_id to %s", value)
+ logger.debug("Switching tenant_id from %s to %s", self._tenant_id, value)
73
self._tenant_id = value
74
75
def reset_tenant_id(self):
0 commit comments