From b795d1236a956e679ed6b2a0f8729b1ca5b5b4be Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 5 Aug 2025 22:26:10 -0400 Subject: [PATCH] Raise ClipboardUnavailableError on all platforms --- src/utils/clipboard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/clipboard.py b/src/utils/clipboard.py index d0d6f42..5a03b27 100644 --- a/src/utils/clipboard.py +++ b/src/utils/clipboard.py @@ -26,7 +26,10 @@ def _ensure_clipboard() -> None: "Clipboard support requires the 'xclip' package. " "Install it with 'sudo apt install xclip' and restart SeedPass.", ) from exc - raise + raise ClipboardUnavailableError( + "No clipboard mechanism available. Install a supported clipboard tool or " + "run SeedPass with --no-clipboard." + ) from exc def copy_to_clipboard(text: str, timeout: int) -> bool: