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

Include original OAuth error in LTIExceptions #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wolever
Copy link

@wolever wolever commented Jun 14, 2016

Currently LTIException raised in response to OAuth errors don't include the original error. This patch includes the original error and maintains the stack trace to simplify debugging.

@pdpinch
Copy link
Member

pdpinch commented Aug 29, 2017

Sorry this has been sitting unattended for so long @wolever but it's failing PEP8 tests.

/home/travis/build/mitodl/pylti/pylti/common.py:310:47: E225 missing whitespace around operator

        raise LTIException("OAuth error: %s" %(e.message, )), None, sys.exc_info()[2]

                                              ^

/home/travis/build/mitodl/pylti/pylti/common.py:310:80: E501 line too long (85 > 79 characters)

        raise LTIException("OAuth error: %s" %(e.message, )), None, sys.exc_info()[2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants