Skip to content

Commit a736a09

Browse files
authored
return nothing if request not success
1 parent 772f9de commit a736a09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cogs/utils/github.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def changelog():
2121
headers=headers,
2222
)
2323

24-
response.raise_for_status()
24+
if not response.ok:
25+
return ""
2526

2627
data = response.json()
2728

0 commit comments

Comments
 (0)