Skip to content

Commit

Permalink
Avoid exception when a conversion function is not available in the cu…
Browse files Browse the repository at this point in the history
…rrent version.
  • Loading branch information
elsif2 committed Oct 31, 2023
1 parent 606fc10 commit a0b34cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/bots/parsers/shadowserver/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0b34cb

Please sign in to comment.