We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5643d56 + ee570ec commit d6549c8Copy full SHA for d6549c8
CHANGELOG.md
@@ -1,4 +1,6 @@
1
## 0.9.17 (TBD, 2019)
2
+* Bug Fixes
3
+ * Fixed a bug when using WSL when all Windows paths have been removed from $PATH
4
* Enhancements
5
* No longer treating empty text scripts as an error condition
6
cmd2/clipboard.py
@@ -10,7 +10,8 @@
10
try:
11
# Try getting the contents of the clipboard
12
_ = pyperclip.paste()
13
-except PyperclipException:
+except (PyperclipException, FileNotFoundError):
14
+ # NOTE: FileNotFoundError is for Windows Subsystem for Linux (WSL) when Windows paths are removed from $PATH
15
can_clip = False
16
else:
17
can_clip = True
0 commit comments