We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a8d4b commit c669b6cCopy full SHA for c669b6c
firebase_admin/_http_client.py
@@ -161,10 +161,11 @@ class call this method to send HTTP requests out. Refer to
161
Raises:
162
RequestException: Any requests exceptions encountered while making the HTTP call.
163
"""
164
+ if self._session is None:
165
+ raise RuntimeError('HTTP client has been closed.')
166
if 'timeout' not in kwargs:
167
kwargs['timeout'] = self.timeout
168
kwargs.setdefault('headers', {}).update(METRICS_HEADERS)
- # possible issue: AttributeError <- _session can be None
169
resp = self._session.request(method, self.base_url + url, **kwargs)
170
resp.raise_for_status()
171
return resp
0 commit comments