mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +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()
|
cleandata = data.splitlines()
|
||||||
raw_output = []
|
raw_output = []
|
||||||
|
|
||||||
if len(cleandata) > 1:
|
if list(filter(None, cleandata)):
|
||||||
# fix headers
|
# fix headers
|
||||||
cleandata[0] = cleandata[0].lower()
|
cleandata[0] = cleandata[0].lower()
|
||||||
cleandata[0] = cleandata[0].replace('-', '_')
|
cleandata[0] = cleandata[0].replace('-', '_')
|
||||||
|
Reference in New Issue
Block a user