Browse Source

fix: Check if _s exists in ConnectionManager before deleting it (#429)

pull/433/head v2.15.3
Petr Hála 2 years ago
committed by GitHub
parent
commit
3edb200656
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/keycloak/connection.py

3
src/keycloak/connection.py

@ -86,7 +86,8 @@ class ConnectionManager(object):
def __del__(self):
"""Del method."""
self._s.close()
if hasattr(self, "_s"):
self._s.close()
@property
def base_url(self):

Loading…
Cancel
Save