mirror of
https://github.com/caronc/apprise.git
synced 2024-11-29 11:34:10 +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:
|
if self.__path:
|
||||||
# Close our file pointer
|
# Close our file pointer
|
||||||
self.__buffer_ptr.close()
|
self.__buffer_ptr.close()
|
||||||
|
self.__handler.close()
|
||||||
if self.__delete:
|
if self.__delete:
|
||||||
try:
|
try:
|
||||||
# Always remove file afterwards
|
# Always remove file afterwards
|
||||||
|
Loading…
Reference in New Issue
Block a user