Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions bin/crowdsec_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def __init__(self, name, output_filename, output_path, dump_type, priority):
if dump_type not in ALLOWED_DUMP_TYPES:
raise ValueError(f"Invalid dump type: {dump_type}")

self.name = name
self.output_filename = output_filename
self.output_path = output_path
self.dump_type = dump_type
Expand Down
6 changes: 5 additions & 1 deletion bin/cssmoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,11 @@ def load_readers(self):
def get_data_from_readers(self, ip):
result = {}
for reader in self.readers:
data = reader.get(ip)
try:
data = reader.get(ip)
except ValueError:
# don't fail if it is not a valid IP address
continue
if not data:
continue
result.update(data)
Expand Down