Skip to content

Commit

Permalink
FIX: statistics_host returns if no host value is given
Browse files Browse the repository at this point in the history
Fixes #2103

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
  • Loading branch information
waldbauer-certat committed Sep 9, 2021
1 parent f2b07f6 commit aaf90df
Showing 1 changed file with 3 additions and 0 deletions.
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

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

Expand Down

0 comments on commit aaf90df

Please sign in to comment.