Do not fail only empty courses

This commit is contained in:
I-Al-Istannen 2020-11-03 20:09:54 +01:00
parent 9ea03bda3e
commit 38d4f5b4c9

View File

@ -124,6 +124,8 @@ class Organizer(Location):
self._cleanup(self.path)
def _cleanup(self, start_dir: Path) -> None:
if not start_dir.exists():
return
paths: List[Path] = list(start_dir.iterdir())
# Recursively clean paths