mirror of https://github.com/caronc/apprise
Chore: Fix `ResourceWarning: unclosed file <_io.TextIOWrapper name=...`
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