mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Fix TypeError: 'NoneType' object is not callable
This commit is contained in:
@ -101,7 +101,10 @@ class HTTPClient(object):
|
|||||||
def __del__(self):
|
def __del__(self):
|
||||||
if not self._session:
|
if not self._session:
|
||||||
return
|
return
|
||||||
self._session.close()
|
try:
|
||||||
|
self._session.close()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self._session = None
|
self._session = None
|
||||||
|
|
||||||
def _next_session(self):
|
def _next_session(self):
|
||||||
|
Reference in New Issue
Block a user