summaryrefslogtreecommitdiff
path: root/docs/dev/search_api.rst
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-24 13:52:36 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-24 14:48:14 +0200
commitca57c7421b7f57f9c5ebb22ec0be241494a5e0eb (patch)
tree1dd5e66b0238119f5f0164ffff01d8828ab76f4b /docs/dev/search_api.rst
parentea0f4346b13527c601bfcfb1f5d17a13b3dfc15c (diff)
[fix] qwant engine - prevent exception on date/time value is None
Has been reported in [1], error messages:: Error Error: ValueError Percentage: 0 Parameters: () File name: searx/engines/qwant.py:159 Function: response Code: pub_date = datetime.fromtimestamp(item['date'], None) Error Error: TypeError Percentage: 0 Parameters: ('an integer is required (got type NoneType)',) File name: searx/engines/qwant.py:196 Function: response Code: pub_date = datetime.fromtimestamp(item['date']) Fix timedelta from seconds to milliseconds [1], error message:: Error Error: TypeError Percentage: 0 Parameters: ('unsupported type for timedelta seconds component: NoneType',) File name: searx/engines/qwant.py:195 Function: response Code: length = timedelta(seconds=item['duration']) [1] https://github.com/searxng/searxng/issues/222 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/dev/search_api.rst')
0 files changed, 0 insertions, 0 deletions