Markus Heiser
ca57c7421b
[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>
2021-07-24 14:48:14 +02:00
..
2021-03-01 10:52:39 +01:00
2021-07-14 09:47:32 +02:00
2021-07-24 14:48:14 +02:00
2021-05-22 15:17:18 +02:00
2021-06-01 08:10:15 +02:00
2021-06-17 15:29:07 +02:00
2021-04-21 16:24:46 +02:00
2021-07-03 17:54:08 +02:00
2021-01-13 14:07:39 +01:00
2021-06-28 10:39:10 +02:00
2021-07-21 13:38:28 +02:00
2021-03-27 19:10:54 +01:00
2021-07-21 13:38:28 +02:00
2021-04-12 17:25:56 +02:00
2020-12-11 14:37:08 +01:00
2021-02-24 18:48:36 +01:00
2021-06-09 18:08:23 +02:00
2021-06-08 15:54:11 +02:00
2021-03-05 10:56:46 +00:00
2021-07-03 17:54:08 +02:00
2021-03-01 19:12:32 +01:00
2021-05-22 15:17:18 +02:00
2021-07-23 10:43:16 +02:00
2021-05-18 17:23:21 +02:00
2021-07-21 13:38:28 +02:00
2021-07-16 17:25:37 +02:00
2021-05-03 15:45:30 +02:00
2021-06-08 15:54:11 +02:00
2021-06-09 18:08:23 +02:00
2021-03-27 20:30:08 +01:00
2021-03-06 12:12:35 +01:00
2021-07-21 13:38:28 +02:00
2021-06-01 08:10:15 +02:00