From bc0724b4997e52ea9a29e41d4ef330e5f7a64387 Mon Sep 17 00:00:00 2001 From: takatost Date: Mon, 11 Nov 2024 19:50:39 +0800 Subject: [PATCH] chore: fix typo --- api/events/event_handlers/deduct_quota_when_message_created.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/events/event_handlers/deduct_quota_when_message_created.py b/api/events/event_handlers/deduct_quota_when_message_created.py index 843a232096..f1479c58a4 100644 --- a/api/events/event_handlers/deduct_quota_when_message_created.py +++ b/api/events/event_handlers/deduct_quota_when_message_created.py @@ -22,6 +22,9 @@ def handle(sender, **kwargs): system_configuration = provider_configuration.system_configuration + if not system_configuration.current_quota_type: + return + quota_unit = None for quota_configuration in system_configuration.quota_configurations: if quota_configuration.quota_type == system_configuration.current_quota_type: