Skip to content

Commit

Permalink
Bug in line 1890 - startswith
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPacker committed Jul 19, 2020
1 parent d9c2856 commit 1ead82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filterCSV
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,7 @@ if __name__ == "__main__":
# contains parameters for that command. e.g. "markdown"
for parmPair, matchCriterion in enumerate(matchCriteria):
actionsList = actionsLists[parmPair]
if matchCriterion.startswith("@"):
if (isinstance(matchCriterion, str)) and (matchCriterion.startswith("@")):
csvTree.applyActions(matchCriterion, actionsList)
elif matchCriterion.pattern.lower() == "dump":
sys.stderr.write(csvTree.dump(actionsList))
Expand Down

0 comments on commit 1ead82d

Please sign in to comment.