Skip to content

Commit

Permalink
If x is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Mar 28, 2023
1 parent e328a9b commit b04ce31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ace/tableparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def parse_table(data):

for r in data:
# Strip whitespace and replace empty cells with empty strings
r = [x.strip() or '' for x in r]
r = [x.strip() or '' for x in r if x is not None]

logger.debug(r)

Expand Down

0 comments on commit b04ce31

Please sign in to comment.