Skip to content

Commit

Permalink
Make folder when missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed May 15, 2024
1 parent 9fccff7 commit 23e1a62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions indexer/src/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ def add_files_to_version(
directory_path = os.path.join(settings.files_dir, main_dir, сhannel_dir)

if not os.path.isdir(directory_path):
exception_msg = f"Directory {directory_path} not found!"
logging.exception(exception_msg)
raise Exception(exception_msg)
os.mkdir(directory_path)

latest_version = None
for entry in sorted(
Expand Down

0 comments on commit 23e1a62

Please sign in to comment.