From b0df14d2417329b0d19db98d1849ff3e45af4940 Mon Sep 17 00:00:00 2001 From: Ans Date: Tue, 8 Aug 2023 18:35:54 -0400 Subject: [PATCH] Fix ruff linting error --- cfgov/paying_for_college/models/disclosures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfgov/paying_for_college/models/disclosures.py b/cfgov/paying_for_college/models/disclosures.py index ec06428e7b9..afaf796049e 100644 --- a/cfgov/paying_for_college/models/disclosures.py +++ b/cfgov/paying_for_college/models/disclosures.py @@ -617,7 +617,7 @@ def notify_school(self): if school.contact: if school.contact.endpoint: endpoint = school.contact.endpoint - if type(endpoint) == str: + if isinstance(endpoint, str): endpoint = endpoint.encode("utf-8") try: resp = requests.post(endpoint, data=payload, timeout=10)