Commit 1e86d380 authored by sim's avatar sim

[FIX] Prevent some crashes while parsing CSV

parent 864e0c27
......@@ -43,10 +43,7 @@ class CSVParser(Parser):
sorted_delimiters = sorted(selected_delimiters, key=lambda x: x[1])
best_delimiter = sorted_delimiters[-1][0]
else:
# Fallback
best_delimiter = ','
print("WARNING: CSV: couldn't detect delimiter, fallback to %r" %
best_delimiter)
raise ValueError("CSV: couldn't detect delimiter, bug or malformed data")
print("CSV selected delimiter:", best_delimiter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment