Skip to content

Commit

Permalink
Fix the __exit__ clause
Browse files Browse the repository at this point in the history
Not the best fix, but it works
  • Loading branch information
mvantellingen committed Nov 3, 2022
1 parent 4388ddd commit 570c623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zeep/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def __enter__(self):
return self

def __exit__(self, exc_type=None, exc_value=None, traceback=None):
self.transport.close()
if hasattr(self.transport, "close"):
self.transport.close()


class AsyncClient(Client):
Expand Down

0 comments on commit 570c623

Please sign in to comment.