diff options
| author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-11-07 21:20:48 +0000 |
|---|---|---|
| committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-11-07 22:08:32 +0000 |
| commit | 73b5a58d9efb76f6c9d3d821a472783ba126d5d7 (patch) | |
| tree | b268cbc2161a013abe2674f3662f4312529e95c1 /searx/engines/github.py | |
| parent | 8f19bdaf17047c2304da739c358d3daee21384c1 (diff) | |
[FIX] Redis initialization
redis.Redis.from_url(url) doesn't check if the url is valid
Before this commit: actual error are detected later when the client is actually used.
With this commit, client() makes sure to return a valid Redis client or None.
Also, the code makes sure not to log the password of the Redis URL
Diffstat (limited to 'searx/engines/github.py')
0 files changed, 0 insertions, 0 deletions