mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
enhance empty data check
This commit is contained in:
@ -186,7 +186,7 @@ def parse(data, raw=False, quiet=False):
|
||||
cleandata = data.splitlines()
|
||||
raw_output = []
|
||||
|
||||
if len(cleandata) > 1:
|
||||
if list(filter(None, cleandata)):
|
||||
# fix headers
|
||||
cleandata[0] = cleandata[0].lower()
|
||||
cleandata[0] = cleandata[0].replace('-', '_')
|
||||
|
Reference in New Issue
Block a user