From 13ae6e8f25a2ababdee5fe34939d068c55b60d69 Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:46:31 +0000 Subject: [PATCH] Formatting --- brewtils/rest/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brewtils/rest/client.py b/brewtils/rest/client.py index ffe14fac..808d02b2 100644 --- a/brewtils/rest/client.py +++ b/brewtils/rest/client.py @@ -227,7 +227,7 @@ def can_connect(self, **kwargs): try: self.session.get(self.config_url, **kwargs) except requests.exceptions.ConnectionError as ex: - if type(ex) == requests.exceptions.ConnectionError: + if type(ex) is requests.exceptions.ConnectionError: return False raise @@ -831,7 +831,7 @@ def post_chunked_file(self, fd, file_params, current_position=0): data = fd.read(file_params["chunk_size"]) if not data: break - if type(data) != bytes: + if type(data) is not bytes: data = bytes(data, "utf-8") data = b64encode(data) chunk_result = self.session.post(