Skip to content

Commit

Permalink
switch to using base64.b64decode() which supports decoding a string
Browse files Browse the repository at this point in the history
  • Loading branch information
sumnerboy12 committed Jul 19, 2023
1 parent 029f884 commit b00e2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqttwarn/services/pushover.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def plugin(srv, item):
elif 'imagebase64' in item.data:
imagebase64 = item.data['imagebase64']
srv.logging.debug("Image (base64 encoded) detected")
image = base64.decodebytes(imagebase64)
image = base64.b64decode(imagebase64)

try:
srv.logging.debug("Sending pushover notification to %s [%s]" % (item.target, params))
Expand Down

0 comments on commit b00e2d5

Please sign in to comment.