-
Committer:
Simon Chopin
-
Author(s):
Benjamin Drung
-
Date:
2023-05-01 13:25:52 UTC
-
Revision ID:
git-v1:e95b38739bfd84ee1b887c8253f40eeb684eb847
fix(apport): Replace os.path.exists check by try-except
Replace `os.path.exists` check by trying to open the file and catching
`FileNotFoundError` to avoid race conditions.
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>