lib/python/gladevcp/gtk_action.py:312 has return npath inside a finally: block. A return in finally swallows any in-flight exception and overrides earlier returns, hiding errors from the try/except above.
finally:
try:
outfile.close()
except:
pass
return npath # <- swallows exceptions, overrides earlier return
Fix: move return npath out of the finally:. Surfaced as a SyntaxWarning: 'return' in a 'finally' block while running the ui-smoke GUIs (#4054).
lib/python/gladevcp/gtk_action.py:312hasreturn npathinside afinally:block. Areturninfinallyswallows any in-flight exception and overrides earlier returns, hiding errors from thetry/exceptabove.Fix: move
return npathout of thefinally:. Surfaced as aSyntaxWarning: 'return' in a 'finally' blockwhile running the ui-smoke GUIs (#4054).