Skip to content

Commit

Permalink
Merge pull request #2 from k29t59dh/master
Browse files Browse the repository at this point in the history
Call to getsize fails when used with mover/remove source file
  • Loading branch information
Josh5 authored Jun 29, 2023
2 parents 240b3b6 + 304d018 commit 9c8f9cc
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 9c8f9cc

Please sign in to comment.