Skip to content

Commit f48655d

Browse files
committed
mpremote/mip: Simplify error message for file URLs with backslashes.
Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
1 parent 47f6c54 commit f48655d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/mpremote/mpremote/mip.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ def _download_file(transport, url, dest):
7878
raise CommandError(f"{e.reason} requesting {url}")
7979
else:
8080
if "\\" in url:
81-
raise CommandError(
82-
f"File URLs with backslashes are not supported: {url!r}\n"
83-
'Use "//" instead of "\\" in the URL.'
84-
)
81+
raise CommandError(f'Use "/" instead of "\\" in file URLs: {url!r}\n')
8582
try:
8683
with open(url, "rb") as f:
8784
data = f.read()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy