fix(pushover): ignore unsupported attachments as intended instead of discarding the entire notification (#650)

pull/686/head
Ryan Young 2022-09-30 14:48:55 -07:00 committed by GitHub
parent f1990b14ce
commit e9f040a2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 14 deletions

View File

@ -432,8 +432,9 @@ class NotifyPushover(NotifyBase):
attach.mimetype, attach.mimetype,
attach.url(privacy=True))) attach.url(privacy=True)))
return True attach = None
else:
# If we get here, we're dealing with a supported image. # If we get here, we're dealing with a supported image.
# Verify that the filesize is okay though. # Verify that the filesize is okay though.
file_size = len(attach) file_size = len(attach)