Skip to content

Commit e69ffa8

Browse files
authored
release_dashboard: Refresh branch information before re-rendering (#722)
Turns out the try/except was indented a bit far; bump it back out and compact it with contextlib.suppress. Fixes #715.
1 parent 7d582dc commit e69ffa8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

master/custom/release_dashboard.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import contextlib
12
import datetime
23
import os
34
import time
@@ -737,10 +738,8 @@ def main():
737738
if time.monotonic() <= deadline:
738739
return result
739740

740-
try:
741-
self._refresh_branch_info()
742-
except urllib.error.HTTPError:
743-
pass
741+
with contextlib.suppress(urllib.error.HTTPError):
742+
self._refresh_branch_info()
744743

745744
result = self.get_release_status()
746745
deadline = time.monotonic() + CACHE_DURATION

0 commit comments

Comments
 (0)