Skip to content

Commit

Permalink
fix #1095 crash in sender when size missing from message
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Jun 6, 2024
1 parent f983ae5 commit b808222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2470,6 +2470,8 @@ def send(self, msg, options):
% local_file)
time.sleep(0.01)
return False
elif 'size' not in msg:
msg['size'] = os.path.getsize(local_file)

offset = 0
if ('blocks' in msg) and (msg['blocks']['method'] == 'inplace'):
Expand Down

0 comments on commit b808222

Please sign in to comment.