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:
committed by
Marge Bot
parent
a00560f763
commit
c4c545b287
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user