Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions intelmq/lib/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class Cache():

def __init__(self, host: str, port: int, db: str, ttl: int,
password: Optional[str] = None):
if host is None:
return
Comment on lines +27 to +28
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is only applicable because the only code calling this cache is the bots.py for the statistics. If any other code would use this class, this fix silently ignores misconfiguration


if host.startswith("/"):
kwargs = {"unix_socket_path": host}

Expand Down