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

Consider exposing queryStatus in PAW API #5

Closed
roryodonnell opened this issue Jun 27, 2019 · 3 comments
Closed

Consider exposing queryStatus in PAW API #5

roryodonnell opened this issue Jun 27, 2019 · 3 comments

Comments

@roryodonnell
Copy link

No description provided.

@roryodonnell
Copy link
Author

@cmalbrec

@cmalbrec
Copy link
Contributor

Hi @roryodonnell :

Could you pls add a description that explains your idea?

Are you after something like this?:

ibmpairs/ibmpairs/paw.py

Lines 800 to 805 in 84fa3cc

raise Exception(
"Querying PAIRS resulted in HTML error code '{}': {}.".format(
self.queryStatus.status_code,
self.queryStatus.text,
)
)

Once you created an object from paw.PAIRSQuery() you can always explicitly use self.queryStatus.

Best,

Conrad

@roryodonnell
Copy link
Author

Yip - thanks Conrad, able to do the following...

pairs_query.submit()
pairs_query.poll_till_finished()
pairs_query.download()
print(pairs_query.queryStatus)

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

No branches or pull requests

2 participants