add data_state

This commit is contained in:
Vladless
2025-04-05 20:48:13 +03:00
parent 0198622ddc
commit 7d902900c3
+5 -1
View File
@@ -268,7 +268,11 @@ async def create_key(
least_loaded_cluster,
session,
)
data = await state.get_data()
data = {}
if state:
data = await state.get_data()
if data.get("is_trial"):
trial_status = await get_trial(tg_id, session)
if trial_status in [0, -1]: