From c4ee39814b094554964fafb03b1f43c9f1ad6c52 Mon Sep 17 00:00:00 2001 From: cswimr Date: Wed, 11 Dec 2024 15:05:47 -0500 Subject: [PATCH] handle ssh connections in zipline.py --- scripts/py/zipline.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/py/zipline.py b/scripts/py/zipline.py index 6178f03..55f7cae 100755 --- a/scripts/py/zipline.py +++ b/scripts/py/zipline.py @@ -42,8 +42,11 @@ def zipline( link = response_data.get("files", [None])[0] if link: - copy(text=link) - print(f"Link copied to clipboard: {link}") + try: + copy(text=link) + print(f"Link copied to clipboard: {link}") + except BaseException as e: + print(f"Failed to copy link to clipboard: {e}\nAre you using SSH?") if application_name and desktop_entry: notify(