Skip to main content

LiumTwoFactorRequired

from lium.sdk import LiumTwoFactorRequired

Defined in lium.sdk.exceptions.

LiumTwoFactorRequired(mfa_token: str)

Catching it​

LiumTwoFactorRequired subclasses LiumSessionError → LiumAuthError → LiumError → Exception, so a handler for any of those also catches it.

from lium.sdk import LiumTwoFactorRequired

try:
... # any SDK call
except LiumTwoFactorRequired as e:
print(e)