From 566fdbcc48781c261218f5687404732b4fe5272b Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sun, 1 Dec 2024 08:01:52 -0500 Subject: [PATCH] Ignore existing dirs --- download.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/download.py b/download.py index 84132b9..fae9d04 100644 --- a/download.py +++ b/download.py @@ -201,7 +201,10 @@ def wait_for_next_puzzle(): def ensure_dir(path: pathlib.Path): - os.makedirs(path) + try: + os.makedirs(path) + except FileExistsError: + pass def setup_logs(verbose: bool):