diff --git a/intelmq/bots/parsers/shadowserver/parser.py b/intelmq/bots/parsers/shadowserver/parser.py index cfa343138..ec1908269 100644 --- a/intelmq/bots/parsers/shadowserver/parser.py +++ b/intelmq/bots/parsers/shadowserver/parser.py @@ -182,7 +182,7 @@ def parse_line(self, row, report): raw_value = row.get(shadowkey) value = raw_value - if conv_func is not None and raw_value is not None: + if conv_func is not None and raw_value is not None and conv_func in config.functions: try: if len(item) == 4 and item[3]: value = config.functions[conv_func](raw_value, row)