summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-30 22:55:16 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-30 22:55:16 -0400
commitdbc1640af4b38f56a23b8c39af3e159ef5a349e2 (patch)
tree5582c91c88f99135eb1d282c99a0c2851cf78d57 /cmd2.py
parent090f9f33e7f626df0c9ea41251ea04a56883efd9 (diff)
downloadcmd2-git-dbc1640af4b38f56a23b8c39af3e159ef5a349e2.tar.gz
Fix issue where pyperclip was printing line on startup when clipboard is empty
Also skip unit test which passes when I run it on my systems, but fails on TravisCI and AppVeyor
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index e45970ce..dfb81b04 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -305,7 +305,7 @@ def options(option_list, arg_desc="arg"):
# Can we access the clipboard? Should always be true on Windows and Mac, but only sometimes on Linux
try:
- pyperclip.paste()
+ _ = pyperclip.paste()
except pyperclip.exceptions.PyperclipException:
can_clip = False
else: