diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-05-26 13:45:31 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-05-26 13:46:05 -0400 |
| commit | b7b7d7331d572a35ba00623b4dfecd80b52d554d (patch) | |
| tree | 8f3b86da725bff50c6f4c3ac8b31f2f52bfc038f /scripts/download_headless.py | |
| parent | 2be1afd3c4eab1f64bbcb4127fef0898fbdd115f (diff) | |
Update download_headless.py
Use f-string instead of .format
Diffstat (limited to 'scripts/download_headless.py')
| -rwxr-xr-x | scripts/download_headless.py | 2 |
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) |
