mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
parent
70a1e627b6
commit
c979597ec4
@ -3,6 +3,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
from contextlib import suppress
|
||||||
import faulthandler
|
import faulthandler
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
@ -208,8 +209,10 @@ def main() -> int:
|
|||||||
exit_code = runner.run(runtime_conf)
|
exit_code = runner.run(runtime_conf)
|
||||||
faulthandler.disable()
|
faulthandler.disable()
|
||||||
|
|
||||||
if os.path.getsize(fault_file_name) == 0:
|
# It's possible for the fault file to disappear, so suppress obvious errors
|
||||||
os.remove(fault_file_name)
|
with suppress(FileNotFoundError):
|
||||||
|
if os.path.getsize(fault_file_name) == 0:
|
||||||
|
os.remove(fault_file_name)
|
||||||
|
|
||||||
check_threads()
|
check_threads()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user