(fix) do nothing if alerting is not switched on
This commit is contained in:
parent
e80d32dcdd
commit
ca12e70369
@ -188,6 +188,10 @@ class ProxyLogging:
|
||||
user_current_spend: float,
|
||||
user_info=None,
|
||||
):
|
||||
if self.alerting is None:
|
||||
# do nothing if alerting is not switched on
|
||||
return
|
||||
|
||||
if type == "user_and_proxy_budget":
|
||||
user_info = dict(user_info)
|
||||
user_id = user_info["user_id"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user