File attachments now work in form:// endpoint calls (#826)

This commit is contained in:
Chris Caron 2023-02-17 09:40:58 -05:00 committed by GitHub
parent c2fdd47b9d
commit f7cc732c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,12 +267,6 @@ class NotifyForm(NotifyBase):
self.logger.debug('I/O Exception: %s' % str(e))
return False
finally:
for file in files:
# Ensure all files are closed
if file[1][1]:
file[1][1].close()
# prepare Form Object
payload = {
# Version: Major.Minor, Major is only updated if the entire