mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
bin/ci: Fix SyntaxWarning about return in finally block
Remove the finally block with a return statement in GitlabGQL.query() method. This pattern causes a SyntaxWarning in Python 3.14 as the return in finally will override any return value or exception from the try/except blocks. Move the return statement to the end of the except block where it belongs, maintaining the same error recovery behavior while fixing the warning. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38123>
This commit is contained in:
parent
a00560f763
commit
c4c545b287
1 changed files with 0 additions and 1 deletions
|
|
@ -106,7 +106,6 @@ class GitlabGQL:
|
|||
logging.error(traceback_str)
|
||||
self.invalidate_query_cache()
|
||||
logging.error("Cache invalidated, retrying without cache")
|
||||
finally:
|
||||
return run_uncached()
|
||||
|
||||
def _query(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue