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

Update bodyfetcher.py #669

Merged
merged 1 commit into from Apr 24, 2017
Merged

Update bodyfetcher.py #669

merged 1 commit into from Apr 24, 2017

Conversation

AWegnerGitHub
Copy link
Member

This adds an additional message when an api_quota missing message occurs. It will show the last url that was sent.

Adds additional debugging information to api_quota missing message
teward
teward previously requested changes Apr 24, 2017
Copy link
Member

@teward teward left a comment

Choose a reason for hiding this comment

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

Refer to my comment in the commit.

@@ -306,6 +306,7 @@ def make_api_call_for_site(self, site):
if GlobalVars.api_backoff_time < time.time() + 12: # Add a backoff of 10 + 2 seconds as a default
GlobalVars.api_backoff_time = time.time() + 12
message_hq += " Backing off on requests for the next 12 seconds."
message_hq += " Previous URL: `{}`".format(url)
Copy link
Member

Choose a reason for hiding this comment

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

This can be added simply to the prior message, without its own line.

message_hq += " Backing off on requests for the next 12 seconds. Previous URL: `{}`".format(url)

That's such an example. (I don't think we need to add a dedicated += if we can just use the existing one?

@teward teward dismissed their stale review April 24, 2017 15:18

Decided changes are not needed.

@teward teward merged commit f77a8e9 into Charcoal-SE:master Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants