mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 07:18:47 +00:00
Raise ClipboardUnavailableError on all platforms
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user