summaryrefslogtreecommitdiff
path: root/scripts/download_headless.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2023-05-26 13:45:31 -0400
committerPeter LaFosse <peter@vector35.com>2023-05-26 13:46:05 -0400
commitb7b7d7331d572a35ba00623b4dfecd80b52d554d (patch)
tree8f3b86da725bff50c6f4c3ac8b31f2f52bfc038f /scripts/download_headless.py
parent2be1afd3c4eab1f64bbcb4127fef0898fbdd115f (diff)
Update download_headless.py
Use f-string instead of .format
Diffstat (limited to 'scripts/download_headless.py')
-rwxr-xr-xscripts/download_headless.py2
1 files changed, 1 insertions, 1 deletions
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)