LiumTransferInterruptedError
from lium.sdk import LiumTransferInterruptedError
Defined in lium.sdk.exceptions.
Ctrl-C ended transfer_credits() after its POST: the transfer may have happened.
LiumTransferInterruptedError(message: str, *, idempotency_key: str, hint: str)
Catching it
LiumTransferInterruptedError subclasses KeyboardInterrupt, so a handler for any of those also catches it.
from lium.sdk import LiumTransferInterruptedError
try:
... # any SDK call
except LiumTransferInterruptedError as e:
print(e, e.hint)
| Field | Meaning |
|---|---|
hint | what to try next, when the API suggested something |
Attributes
| Name | Type | Description |
|---|---|---|
code | ||
idempotency_key | ||
hint | ||
request_id |