Wrap imgur error in try... except

If the response isn't json with a error key, such as a
400 bad request, then the error handling would error out.
Use format over % for pagination
Send code in exchange_code not pin

Thanks to https://github.com/RobSis for finding this.