Skip to main content

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)
FieldMeaning
hintwhat to try next, when the API suggested something

Attributes​

NameTypeDescription
code
idempotency_key
hint
request_id