Skip to content

Commit 9c97dca

Browse files
authored
Adapting gh api changes (#47)
1 parent b156ca9 commit 9c97dca

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

app/model/devel_feed.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,11 @@ def new(d: dict):
6060

6161
elif d["type"].startswith("PullRequest"):
6262
target_url = d["payload"]["pull_request"]["url"]
63-
response = (
64-
cache.get(
65-
target_url,
66-
headers={"Accept": "application/vnd.github.v3+json"},
67-
background_update_interval=_UPDATE_INTERVAL,
68-
cache_expiration_timeout=_CACHE_LIFETIME,
69-
)
70-
or b"[]"
63+
response = cache.get(
64+
target_url,
65+
headers={"Accept": "application/vnd.github.v3+json"},
66+
background_update_interval=_UPDATE_INTERVAL,
67+
cache_expiration_timeout=_CACHE_LIFETIME,
7168
)
7269
if not response:
7370
return

0 commit comments

Comments
 (0)