handle ssh connections in zipline.py
This commit is contained in:
parent
4b31769241
commit
c4ee39814b
1 changed files with 5 additions and 2 deletions
|
@ -42,8 +42,11 @@ def zipline(
|
||||||
link = response_data.get("files", [None])[0]
|
link = response_data.get("files", [None])[0]
|
||||||
|
|
||||||
if link:
|
if link:
|
||||||
|
try:
|
||||||
copy(text=link)
|
copy(text=link)
|
||||||
print(f"Link copied to clipboard: {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:
|
if application_name and desktop_entry:
|
||||||
notify(
|
notify(
|
||||||
|
|
Loading…
Reference in a new issue