summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/remote.py b/python/vyos/remote.py
index 492c9e9de..ad9706a82 100644
--- a/python/vyos/remote.py
+++ b/python/vyos/remote.py
@@ -87,7 +87,7 @@ def download(local_path, urlstring):
elif url.scheme == 'tftp':
download_tftp(local_path, url.hostname, url.path)
else:
- sys.exit('Unsupported URL scheme')
+ ValueError(f'Unsupported URL scheme: {url.scheme}')
def upload(local_path, urlstring):
"""
@@ -103,7 +103,7 @@ def upload(local_path, urlstring):
elif url.scheme == 'tftp':
upload_tftp(local_path, url.hostname, url.path)
else:
- sys.exit('Unsupported URL scheme')
+ ValueError(f'Unsupported URL scheme: {url.scheme}')
def get_remote_config(urlstring):
"""