mirror of
https://github.com/caronc/apprise.git
synced 2024-12-29 01:59:11 +01:00
Chore: Fix ResourceWarning: unclosed file <_io.TextIOWrapper name=...
This commit is contained in:
parent
d895471b79
commit
5db016cfb3
@ -181,6 +181,7 @@ class LogCapture:
|
||||
if self.__path:
|
||||
# Close our file pointer
|
||||
self.__buffer_ptr.close()
|
||||
self.__handler.close()
|
||||
if self.__delete:
|
||||
try:
|
||||
# Always remove file afterwards
|
||||
|
Loading…
Reference in New Issue
Block a user