handle ssh connections in zipline.py

This commit is contained in:
Seaswimmer 2024-12-11 15:05:47 -05:00
parent 4b31769241
commit c4ee39814b
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -42,8 +42,11 @@ def zipline(
link = response_data.get("files", [None])[0]
if 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(