From a6322fae6deb8bcbe7c1be74a791e291d854b54f Mon Sep 17 00:00:00 2001 From: masavini Date: Fri, 12 Aug 2022 14:45:35 +0200 Subject: [PATCH] missing f-strings (#490) --- cli-tool/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli-tool/cli.py b/cli-tool/cli.py index f3abef3..42525be 100644 --- a/cli-tool/cli.py +++ b/cli-tool/cli.py @@ -77,7 +77,7 @@ def upload_media(): files['media_file'] = open(f'{abs}', 'rb') response = requests.post(url=f'{BASE_URL}/media', headers=headers, files=files) if response.status_code == 201: - print("[bold blue]{filename}[/bold blue] successfully uploaded!") + print(f"[bold blue]{filename}[/bold blue] successfully uploaded!") else: print(f'Error: {response.text}') @@ -86,7 +86,7 @@ def upload_media(): files['media_file'] = open(f'{os.path.abspath(path)}', 'rb') response = requests.post(url=f'{BASE_URL}/media', headers=headers, files=files) if response.status_code == 201: - print("[bold blue]{filename}[/bold blue] successfully uploaded!") + print(f"[bold blue]{filename}[/bold blue] successfully uploaded!") else: print(f'Error: {response.text}')