Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
This commit is contained in:
Zach Halpern 2019-04-02 22:48:53 -04:00
parent c9fc1b2447
commit cb88104849

View File

@ -550,7 +550,8 @@ def delete_old_files() -> None:
if file.stem not in valid_files:
file.unlink()
shutil.rmtree(OUTPUT_TMP_DIR)
if OUTPUT_TMP_DIR.is_dir():
shutil.rmtree(OUTPUT_TMP_DIR)
def main() -> None: