summaryrefslogtreecommitdiff
path: root/searx/network/__init__.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-09-16 18:05:31 +0200
committerAlexandre Flament <alex@al-f.net>2021-09-17 10:06:24 +0200
commit41f6359d06fd6fb93ddfde59cba17da57565f587 (patch)
tree2256a99c8a078345a5bd7c63c290f4adae93d362 /searx/network/__init__.py
parentb10403d3a1c1da6a6c5bbb49bc891f26ff45f1f1 (diff)
[fix] error recorder: avoid RuntimeError on some rare occasion
httpx.RequestError (subclass of httpx.HTTPError) has a property request. This property raises a RuntimeError if the attributes _request is None. To avoid a cascade of errors, this commit reads directly the _request attribute.
Diffstat (limited to 'searx/network/__init__.py')
0 files changed, 0 insertions, 0 deletions