diff --git a/evidence/management/commands/up_snapshots.py b/evidence/management/commands/up_snapshots.py index ca940c8..f966201 100644 --- a/evidence/management/commands/up_snapshots.py +++ b/evidence/management/commands/up_snapshots.py @@ -37,6 +37,8 @@ class Command(BaseCommand): elif os.path.isdir(path): self.read_directory(path) + else: + raise ValueError(f"The path {path} is neither a file nor a directory") self.parsing()