Skip to content

Commit c76318d

Browse files
author
Nolan Woods
committed
Show error when input query empty
1 parent 4e305f3 commit c76318d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

biopython_convert/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def get_args(sysargs: list):
5656
elif opt == '-s':
5757
split = True
5858
elif opt == '-q':
59+
if not val:
60+
raise getopt.GetoptError("JMESPath must not be empty", "-q")
5961
jpath = val
6062
elif opt == '-i':
6163
stats = sys.stdout

0 commit comments

Comments
 (0)