---
title: LiumTwoFactorRequired
sidebar_label: LiumTwoFactorRequired
sidebar_position: 19
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lium.io/llms.txt
> Use this file to discover all available pages before exploring further.
>
> Lium (lium.io) is a GPU rental marketplace: rent NVIDIA GPUs by the hour, billed per second.

<!-- Generated by scripts/generate_sdk_reference.py. Do not edit directly. -->

# LiumTwoFactorRequired

```python
from lium.sdk import LiumTwoFactorRequired
```

Defined in `lium.sdk.exceptions`.

```python
LiumTwoFactorRequired(mfa_token: str)
```

## Catching it

`LiumTwoFactorRequired` subclasses [`LiumSessionError`](/developers/sdk/reference/exceptions/lium-session-error) → [`LiumAuthError`](/developers/sdk/reference/exceptions/lium-auth-error) → [`LiumError`](/developers/sdk/reference/exceptions/lium-error) → `Exception`, so a handler for any of those also catches it.

```python
from lium.sdk import LiumTwoFactorRequired

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