It's ok if the directory doesn't exist
build
Details
build
Details
This commit is contained in:
parent
72dea02735
commit
5aa0fddb9b
|
@ -23,7 +23,11 @@ def download_file(url: str):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
rmtree(OUTPUT_DIR)
|
try:
|
||||||
|
rmtree(OUTPUT_DIR)
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
OUTPUT_DIR.mkdir(exist_ok=True)
|
OUTPUT_DIR.mkdir(exist_ok=True)
|
||||||
|
|
||||||
logo = download_file(f"{GITEA_ROOT}/assets/img/logo.svg")
|
logo = download_file(f"{GITEA_ROOT}/assets/img/logo.svg")
|
||||||
|
|
Loading…
Reference in New Issue