Skip to content

Commit

Permalink
Call to getsize fails when used with mover/remove source file because…
Browse files Browse the repository at this point in the history
… source path is removed – Fixed
  • Loading branch information
k29t59dh authored Jun 28, 2023
1 parent 240b3b6 commit 304d018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def on_postprocessor_task_results(data):

# Map variables to be replaced in cmd and args
abspath = data.get('source_data', {}).get('abspath')
source_size = os.path.getsize(abspath)
source_size = os.path.getsize(abspath) if os.path.exists(abspath) else None
variable_map = {
'{library_id}': str(data.get('library_id')),
'{final_cache_path}': str(data.get('final_cache_path')),
Expand Down

0 comments on commit 304d018

Please sign in to comment.