Skip to content

Add exception instead of "pass" to avoid silently skipping of write#205

Merged
msumit merged 1 commit intoqubole:unreleasedfrom
chudsaviet:master
Mar 19, 2019
Merged

Add exception instead of "pass" to avoid silently skipping of write#205
msumit merged 1 commit intoqubole:unreleasedfrom
chudsaviet:master

Conversation

@chudsaviet
Copy link
Copy Markdown
Contributor

I have faced an issue when passing NamedTemporaryFile instance to get_results().
It silently skipped writing, which is very bad.
So to avoid this, commentary 'Can this happen? Don't know what's the right thing to do in this case.' and 'pass' should be replaced with 'raise ValueError()'.

@msumit msumit changed the base branch from master to unreleased March 19, 2019 13:45
@msumit msumit merged commit 9365023 into qubole:unreleased Mar 19, 2019
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

Successfully merging this pull request may close these issues.

2 participants