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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/keycloak/connection.py
|
@ -86,7 +86,8 @@ class ConnectionManager(object): |
|
|
|
|
|
|
|
|
def __del__(self): |
|
|
def __del__(self): |
|
|
"""Del method.""" |
|
|
"""Del method.""" |
|
|
self._s.close() |
|
|
|
|
|
|
|
|
if hasattr(self, "_s"): |
|
|
|
|
|
self._s.close() |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def base_url(self): |
|
|
def base_url(self): |
|
|