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(