Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG: tolerate PRs with no discussion

  • Loading branch information...
commit 60918b97d8652c687df95a698cffaee2b97c1baa 1 parent 434c669
@pv authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  github-pull-request-rss
View
2  github-pull-request-rss
@@ -235,7 +235,7 @@ class GithubPulls(object):
request_timestamp_delta = (item.timestamp
+ datetime.timedelta(microseconds=1))
- for j, entry in enumerate(request['discussion']):
+ for j, entry in enumerate(request.get('discussion', [])):
request_timestamp_delta += datetime.timedelta(microseconds=1)
if entry['type'].lower() == 'commit':
repo = request['head']['repository']
Please sign in to comment.
Something went wrong with that request. Please try again.