PagerMaid-Pyro/pagermaid/utils/_path.py

8 lines
148 B
Python
Raw Permalink Normal View History

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