mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-29 21:36:31 -04:00
Throw an error when trying to copy a line that does exist, but is blank
Former-commit-id: 15449013e83cb2454771399594305cf82150bd9c Former-commit-id: ffe3d6a89cb1cfd86bbfb2beadce5510f143ff92
This commit is contained in:
@@ -646,6 +646,10 @@ def copy_data():
|
||||
_index = 2
|
||||
elif arguments[2] in ('note', '-n'):
|
||||
_index = 3
|
||||
_copy_subject = _copy_line[_index]
|
||||
# ensure field is not blank
|
||||
if _copy_subject == '':
|
||||
raise IndexError
|
||||
# PORT START CLIPBOARD
|
||||
# WSL clipboard detection
|
||||
if 'WSL_DISTRO_NAME' in environ:
|
||||
|
||||
Reference in New Issue
Block a user