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

Support authentication for the URL query runner. #2318

Merged
merged 2 commits into from
Sep 28, 2018

Conversation

jezdez
Copy link
Member

@jezdez jezdez commented Feb 14, 2018

Adds a new BaseHTTPQueryRunner class and tests.

This is a backport from mozilla#336.

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small thing with the exception handling, but other than that very nice! Thanks.

except Exception as exc:
# Catch any other exceptions, log it and reraise it.
logger.exception(exc)
raise sys.exc_info()[1], None, sys.exc_info()[2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this block of code in some places, but it's not really needed. Any unhandled exception is being taken care of by the execute query task.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arikfr I've removed those sections in 8a4391c (except the one in sqlite.py which does some extra unicode error handling).

Adds a new BaseHTTPQueryRunner class and tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants