Skip to content

Commit

Permalink
Bug fixed for uploading content rather than string of the path
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankerL committed Oct 8, 2020
1 parent 5529555 commit 94c8c42
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ def github_manager():
release.upload_asset(
content_type='application/text',
name=file.split('/')[-1],
asset=os.path.join(
os.path.split(os.path.realpath(__file__))[0], file
asset=open(
file=os.path.join(
os.path.split(os.path.realpath(__file__))[0], file
),
mode='rb'
)
)

Expand Down

0 comments on commit 94c8c42

Please sign in to comment.