diff options
Diffstat (limited to 'cmd2/clipboard.py')
-rw-r--r-- | cmd2/clipboard.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd2/clipboard.py b/cmd2/clipboard.py index 8e3cddc3..18370f9a 100644 --- a/cmd2/clipboard.py +++ b/cmd2/clipboard.py @@ -10,7 +10,8 @@ from pyperclip import PyperclipException try: # Try getting the contents of the clipboard _ = pyperclip.paste() -except PyperclipException: +except (PyperclipException, FileNotFoundError): + # NOTE: FileNotFoundError is for Windows Subsystem for Linux (WSL) when Windows paths are removed from $PATH can_clip = False else: can_clip = True |