Skip to content

Commit

Permalink
Merge "Fix futures timeout error."
Browse files Browse the repository at this point in the history
-- Branch commit log --
commit 0d2b25c
Author:  David Schweikert <dwes@google.com>
Date:    2023-07-24T20:47:48+02:00

    Fix futures timeout error.

Just TimeoutError doesn't work with Python < 3.11.

Change-Id: Ic4b04b5ff50ed984f3e78a75ffd546bbc42074fd
GitOrigin-RevId: b456794
  • Loading branch information
schweikert authored and copybara-github committed Jul 24, 2023
1 parent 5a1bda7 commit a8ca232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcpdiag/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def run_rules(self, context: models.Context, result: LintResults,
try:
rule.prefetch_rule_future.result(10)
break
except TimeoutError:
except concurrent.futures.TimeoutError:
pass
if config.get('verbose') >= 2:
now = time.time()
Expand Down

0 comments on commit a8ca232

Please sign in to comment.