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:
2023-05-25 13:24:14 -04:00
parent 657bc0291f
commit 273b3c97a5
+4
View File
@@ -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: