PagerMaid-Pyro/pagermaid/utils/_path.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
148 B
Python
Raw Normal View History

import contextlib
from os import remove
def safe_remove(name: str) -> None:
with contextlib.suppress(FileNotFoundError):
remove(name)