Skip to content

Commit

Permalink
catch and clear
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed May 14, 2021
1 parent 0e7f5f2 commit bf64c9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mirakuru/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,10 @@ def __del__(self) -> None:
self.__delete = True
try:
if self.process:
self.kill()
try:
self.kill()
except OSError:
self._clear_process()
except Exception: # pragma: no cover
print("*" * 80)
print(
Expand Down

0 comments on commit bf64c9e

Please sign in to comment.