Fixes a crash on network error in access_token!/2 and request_token!/2
Fixes a crash when an API request results in a non-200 status
Ideally this would raise an error-specific exception instead of the default RuntimeError but I think it's best to err on the side of backwards-compatibility. I've also created a test for OAuth that only tests for this issue but which could (should :wink:) include more extensive tests in the future.
Ideally this would raise an error-specific exception instead of the default
RuntimeError
but I think it's best to err on the side of backwards-compatibility. I've also created a test forOAuth
that only tests for this issue but which could (should :wink:) include more extensive tests in the future.Fixes #8