From b7b7d7331d572a35ba00623b4dfecd80b52d554d Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 26 May 2023 13:45:31 -0400 Subject: Update download_headless.py Use f-string instead of .format --- scripts/download_headless.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/download_headless.py b/scripts/download_headless.py index 1732b97e..1e5ed936 100755 --- a/scripts/download_headless.py +++ b/scripts/download_headless.py @@ -62,7 +62,7 @@ def download_headless(serial: str, output_path: str = None, dev: bool = False) - results = json.loads(r.text) if not results['ok']: message = results.get('message', 'No additional information available.') - raise DownloadException('Download failed: {}'.format(message)) + raise DownloadException(f'Download failed: {message}') req_url = results['url'] content = requests.get(req_url, allow_redirects=True) -- cgit v1.3.1