Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7136#discussion_r33627131
  
    --- Diff: dev/merge_spark_pr.py ---
    @@ -58,9 +64,16 @@
     
     def get_json(url):
         try:
    -        return json.load(urllib2.urlopen(url))
    +        request = urllib2.Request(url)
    +        if GITHUB_OAUTH_KEY:
    +            request.add_header('Authorization', 'token %s' % 
GITHUB_OAUTH_KEY)
    +        return json.load(urllib2.urlopen(request))
         except urllib2.HTTPError as e:
    -        print "Unable to fetch URL, exiting: %s" % url
    +        if "X-RateLimit-Remaining" in e.headers and 
e.headers["X-RateLimit-Remaining"] == '0':
    +            print "Exceeded the GitHub rate limit; see the instructions in 
dev/run-tests.py to " + \
    --- End diff --
    
    Oops, should be dev/merge_spark_pr.py.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to