Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give better error if instructions are not a valid TSV #21

Open
tmtmtmtm opened this issue Dec 4, 2017 · 0 comments
Open

Give better error if instructions are not a valid TSV #21

tmtmtmtm opened this issue Dec 4, 2017 · 0 comments

Comments

@tmtmtmtm
Copy link

tmtmtmtm commented Dec 4, 2017

Several times I've accidentally tried to feed this a CSV file instead of a TSV. In such a case we get a slightly confusing error message:

Traceback (most recent call last):
  File "position_statements.py", line 131, in <module>
    command['property'] = parts[1]
IndexError: list index out of range
<class 'IndexError'>
CRITICAL: Closing network session.

We should spot cases like this (especially as the file needs to have more than one field), and give a better error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant