diff --git a/intelmq/bots/collectors/shadowserver/collector_reports_api.py b/intelmq/bots/collectors/shadowserver/collector_reports_api.py index 20f6dd73a..3fc3d2f9f 100644 --- a/intelmq/bots/collectors/shadowserver/collector_reports_api.py +++ b/intelmq/bots/collectors/shadowserver/collector_reports_api.py @@ -56,7 +56,9 @@ def init(self): raise ValueError('No secret provided.') if isinstance(self.reports, str): - self._report_list = self.reports.split(',') + # if reports is an empty string (or only contains whitespace), behave as if the parameter is not set and select all reports + reports = self.reports.strip() + self._report_list = reports.split(',') if reports else [] elif isinstance(self.reports, list): self._report_list = self.reports if isinstance(self.types, str):