Skip to content

Commit

Permalink
cli.py missing f string (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavirez committed Nov 10, 2023
1 parent 92c0ff5 commit fdff081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli-tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def upload_media():
if os.path.isdir(path):
for filename in os.listdir(path):
files = {}
abs = os.path.abspath("{path}/{filename}")
abs = os.path.abspath(f"{path}/{filename}")
files['media_file'] = open(f'{abs}', 'rb')
response = requests.post(url=f'{BASE_URL}/media', headers=headers, files=files)
if response.status_code == 201:
Expand Down

0 comments on commit fdff081

Please sign in to comment.