1
Fork 0

It's ok if the directory doesn't exist
build Details

This commit is contained in:
Jake Howard 2023-03-26 20:01:41 +01:00
parent 72dea02735
commit 5aa0fddb9b
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@ def download_file(url: str):
def main():
rmtree(OUTPUT_DIR)
try:
rmtree(OUTPUT_DIR)
except FileNotFoundError:
pass
OUTPUT_DIR.mkdir(exist_ok=True)
logo = download_file(f"{GITEA_ROOT}/assets/img/logo.svg")