Skip to main content

Batchdelivery addon fails for folders directly in project root

Hi,

The batchdelivery addon 0.4.1 is failing during the process in the plugin “collect_offloaded_processing_context” around line 552:

                "sourceParentFolderName": folder_path.split("/")[-2],

This line will fail when folder_path points directly to a folder in the project root, because after the earlier stripping logic there is no remaining / in the path.

In our current project structure, shots are located directly under the project root and do not have any parent folders. As a result, this code path will be triggered and the logic will break for those shots.

Changing the value to


folder_path.split("/")[-2] if folder_path.count("/") > 0 else ““

works as expected and the rest of the process continues without error.

Since I don't have access to post this issue directly in the addon's private repository or submit a pull request, I'm happy to track and discuss the status of the bug here.

Thanks!

1 comment

Log in to comment and vote

Comments1

  • Mustafa Zaky Jafar

    Team

    Thank you. I’ll report it internally and make a PR. I’ll let you know the review results.