Skip to content

Commit c276dc3

Browse files
Merge branch 'mmcinnestaylor:main' into main
2 parents d87b2a6 + ae3fcd6 commit c276dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_context_data(self, **kwargs):
2929
context['domjudge_status'] = cache.get('domjudge_status')
3030
else:
3131
try:
32-
r = req.head(DOMJUDGE_URL)
32+
r = req.head(DOMJUDGE_URL, timeout=3)
3333
except req.ConnectionError:
3434
context['domjudge_status'] = None
3535
else:

0 commit comments

Comments
 (0)