From c41e7e63744dbfbbfe6aad25145afa86c36b2701 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 27 Aug 2023 12:56:55 -0400 Subject: [PATCH] Fixed ResourceWarning: unclosed file with macosx --- apprise/plugins/NotifyMacOSX.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apprise/plugins/NotifyMacOSX.py b/apprise/plugins/NotifyMacOSX.py index 59c0620a35..4856dc0805 100644 --- a/apprise/plugins/NotifyMacOSX.py +++ b/apprise/plugins/NotifyMacOSX.py @@ -197,8 +197,7 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs): self.logger.debug('MacOSX CMD: {}'.format(' '.join(cmd))) # Send our notification - output = subprocess.Popen( - cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + output = subprocess.Popen(cmd) # Wait for process to complete output.wait()