You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/06/14 08:02:45 UTC
[GitHub] [spark] dongjoon-hyun commented on a change in pull request #24874:
[SPARK-28053][INFRA] Handle a corner case where there is no `Link` header
dongjoon-hyun commented on a change in pull request #24874: [SPARK-28053][INFRA] Handle a corner case where there is no `Link` header
URL: https://github.com/apache/spark/pull/24874#discussion_r293699383
##########
File path: dev/github_jira_sync.py
##########
@@ -77,8 +77,8 @@ def get_jira_prs():
result = result + [(jira, pull)]
# Check if there is another page
- link_header = filter(lambda k: k.startswith("Link"), page.info().headers)[0]
- if "next" not in link_header:
+ link_headers = filter(lambda k: k.startswith("Link"), page.info().headers)
+ if not link_headers or "next" not in link_headers[0]:
Review comment:
I'll use `len(...) > 0` for the next time~
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org