mirror of https://github.com/zulip/zulip.git
ruff: Fix E721 Use `isinstance()` for isinstance checks.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 05e54a0af2
)
This commit is contained in:
parent
533a6cb1c6
commit
19c3476f5b
|
@ -55,7 +55,7 @@ def stripe_event_handler_decorator(
|
|||
"description": e.error_description,
|
||||
}
|
||||
event.save(update_fields=["status", "handler_error"])
|
||||
if type(stripe_object) == stripe.Invoice:
|
||||
if isinstance(stripe_object, stripe.Invoice):
|
||||
# For Invoice processing errors, send email to billing support.
|
||||
send_email(
|
||||
"zerver/emails/error_processing_invoice",
|
||||
|
|
Loading…
Reference in New Issue