Skip to content

Commit

Permalink
Update intelmq/bots/parsers/shadowserver/_config.py
Browse files Browse the repository at this point in the history
Co-authored-by: Wagner <[email protected]>
  • Loading branch information
monoidic and Wagner authored Aug 19, 2021
1 parent 7be66f1 commit d1bc46f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intelmq/bots/parsers/shadowserver/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ def force_base64(value: Optional[str]) -> Optional[str]:

try:
base64.b64decode(value) # return value intentionally ignored
return value
except binascii.Error:
return base64.b64encode(value.encode()).decode()
else:
return value


# https://www.shadowserver.org/wiki/pmwiki.php/Services/Open-DB2
Expand Down

0 comments on commit d1bc46f

Please sign in to comment.