Skip to content

Commit

Permalink
Fixed variable scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Feb 13, 2017
1 parent b3da21a commit acb6ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyosf/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def upload_file(self, asset, session):
self.chunk_size, self.info_callback)
reply = session.put(asset['url'], data=file_buffer, timeout=30.0)
else:
with open(local_path, 'rb') as file_buffer:
with open(asset['local_path'], 'rb') as file_buffer:
reply = session.put(asset['url'], data=file_buffer,
timeout=30.0)
# check the upload worked (md5 checksum)
Expand Down

0 comments on commit acb6ba9

Please sign in to comment.