Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Oct 25, 2023
1 parent 313779b commit 13ae6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brewtils/rest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 13ae6e8

Please sign in to comment.