mirror of
https://github.com/caronc/apprise.git
synced 2025-02-03 20:09:45 +01:00
Fixed ResourceWarning: unclosed file with macosx
This commit is contained in:
parent
f82934a815
commit
c41e7e6374
@ -197,8 +197,7 @@ class NotifyMacOSX(NotifyBase):
|
|||||||
self.logger.debug('MacOSX CMD: {}'.format(' '.join(cmd)))
|
self.logger.debug('MacOSX CMD: {}'.format(' '.join(cmd)))
|
||||||
|
|
||||||
# Send our notification
|
# Send our notification
|
||||||
output = subprocess.Popen(
|
output = subprocess.Popen(cmd)
|
||||||
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
|
||||||
|
|
||||||
# Wait for process to complete
|
# Wait for process to complete
|
||||||
output.wait()
|
output.wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user