Skip to content

Commit

Permalink
Fixed ResourceWarning: unclosed file with macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Aug 27, 2023
1 parent f82934a commit c41e7e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apprise/plugins/NotifyMacOSX.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c41e7e6

Please sign in to comment.