We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d582dc commit e69ffa8Copy full SHA for e69ffa8
1 file changed
master/custom/release_dashboard.py
@@ -1,3 +1,4 @@
1
+import contextlib
2
import datetime
3
import os
4
import time
@@ -737,10 +738,8 @@ def main():
737
738
if time.monotonic() <= deadline:
739
return result
740
- try:
741
- self._refresh_branch_info()
742
- except urllib.error.HTTPError:
743
- pass
+ with contextlib.suppress(urllib.error.HTTPError):
+ self._refresh_branch_info()
744
745
result = self.get_release_status()
746
deadline = time.monotonic() + CACHE_DURATION
0 commit comments