Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Update upload.py
Browse files Browse the repository at this point in the history
Fix up;oad issues with github3.py >= 1.0
  • Loading branch information
ColinDuquesnoy authored Mar 18, 2018
1 parent 8762ede commit 9892a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def upload_binaries(release, glob_expr):
name = os.path.split(file)[1]
content_type = "application/octet-stream"

for asset in release.assets:
for asset in release.assets():
if asset.name == name:
print("asset %r already uploaded" % asset.name)
break
Expand Down

0 comments on commit 9892a70

Please sign in to comment.