exception for file path
This commit is contained in:
parent
7653c9d5f9
commit
3faa98a60e
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue