mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
4f90fb6a92
datetime.parser.parse() does not know the Spanish date format which leads to a ValueError. Fixes #1870 Traceback (most recent call last): File "/usr/local/searx/searx/search.py", line 160, in search_one_http_request_safe search_results = search_one_http_request(engine, query, request_params) File "/usr/local/searx/searx/search.py", line 97, in search_one_http_request return engine.response(response) File "/usr/local/searx/searx/engines/startpage.py", line 102, in response published_date = parser.parse(date_string, dayfirst=True) File "/usr/local/searx/searx-ve/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 1358, in parse return DEFAULTPARSER.parse(timestr, **kwargs) File "/usr/local/searx/searx-ve/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 649, in parse raise ValueError("Unknown string format:", timestr) ValueError: ('Unknown string format:', '24 Ene 2013') |
||
---|---|---|
.. | ||
answerers | ||
data | ||
engines | ||
plugins | ||
static | ||
templates | ||
translations | ||
__init__.py | ||
autocomplete.py | ||
exceptions.py | ||
languages.py | ||
poolrequests.py | ||
preferences.py | ||
query.py | ||
results.py | ||
search.py | ||
settings_robot.yml | ||
settings.yml | ||
testing.py | ||
url_utils.py | ||
utils.py | ||
version.py | ||
webapp.py |