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

ResponseError caused by None #124

Closed
alastair opened this issue Sep 19, 2013 · 4 comments
Closed

ResponseError caused by None #124

alastair opened this issue Sep 19, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@alastair
Copy link
Owner

reminder for me to work out why this is happening

  File "/srv/dunya/env/src/musicbrainzngs/musicbrainzngs/musicbrainz.py", line 710, in get_recording_by_id
    return _do_mb_query("recording", id, includes, params)
  File "/srv/dunya/env/src/musicbrainzngs/musicbrainzngs/musicbrainz.py", line 607, in _do_mb_query
    return _mb_request(path, 'GET', auth_required, args=args)
  File "/srv/dunya/env/src/musicbrainzngs/musicbrainzngs/musicbrainz.py", line 369, in __call__
    return self.fun(*args, **kwargs)
  File "/srv/dunya/env/src/musicbrainzngs/musicbrainzngs/musicbrainz.py", line 563, in _mb_request
    resp = _safe_read(opener, req, body)
  File "/srv/dunya/env/src/musicbrainzngs/musicbrainzngs/musicbrainz.py", line 455, in _safe_read
    raise ResponseError(cause=exc)
ResponseError: caused by: None
@ghost ghost assigned alastair Sep 19, 2013
@alastair
Copy link
Owner Author

appears to be a 404. Running the query manually gives me a correct cause

@sampsyo
Copy link
Collaborator

sampsyo commented Sep 19, 2013

Strange. I'm not sure why this exception would get handled this way, but FWIW, this is one of those cases where using requests (#123), which has a much simpler exception story, could be beneficial.

@alastair
Copy link
Owner Author

😉

@alastair alastair added this to the 0.6 milestone Feb 6, 2014
@alastair
Copy link
Owner Author

Unable to reproduce.

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

3 participants