Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Fix E721 Use `isinstance()` for isinstance checks.
Anders Kaseorg05e54a0af207
diff --git a/corporate/lib/stripe_event_handler.py b/corporate/lib/stripe_event_handler.pyindex 94a5e0952f8..54e88827301 100644--- a/corporate/lib/stripe_event_handler.py+++ b/corporate/lib/stripe_event_handler.py@@ -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",