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:
Anders Kaseorg 2024-07-25 15:10:44 -07:00 committed by Tim Abbott
parent 533a6cb1c6
commit 19c3476f5b
1 changed files with 1 additions and 1 deletions

View File

@ -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",