Skip to content

Commit

Permalink
don't try and create dir if file_out is None
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenanno authored and Josh5 committed Jul 4, 2024
1 parent 4e3f6c8 commit 38ff831
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions unmanic/libs/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,9 @@ def __exec_command_subprocess(self, data):
'LOG:\n',
]

# Create output path if not exists
common.ensure_dir(data.get("file_out"))
# Create output path if file_out is present and the path does not exists
if data.get("file_out"):
common.ensure_dir(data.get("file_out"))

# Convert file
try:
Expand Down

0 comments on commit 38ff831

Please sign in to comment.