Skip to content

Commit 123f944

Browse files
committed
Possible fix for the timeout?
1 parent 38b9d02 commit 123f944

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linux_foundation.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def parse_events_page():
4848
def fetch_smapply_json():
4949
has_next = True
5050
page = 1
51-
while has_next:
51+
# Ten page limit to deal with errors I guess?
52+
while has_next and page < 10:
5253
data = requests.get(f'https://linuxfoundation.smapply.io/prog/ds/?page={page}&base_query=all').json()
5354
has_next = data['has_next']
5455
page += 1

0 commit comments

Comments
 (0)