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

Should check for empty cells before sending request #10

Open
kevin1 opened this issue Nov 23, 2017 · 0 comments
Open

Should check for empty cells before sending request #10

kevin1 opened this issue Nov 23, 2017 · 0 comments
Labels

Comments

@kevin1
Copy link
Member

kevin1 commented Nov 23, 2017

If I try to submit a csv with one of the uni cells blank, the request fails with:

Traceback (most recent call last):
  File "./canvas-wrangler.py", line 257, in <module>
    res = res.json()
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 826, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 367, in decode
    raise ValueError(errmsg("Extra data", s, end, len(s)))
@kevin1 kevin1 added the bug label Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant