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 91e698e commit fbdb5dcCopy full SHA for fbdb5dc
1 file changed
src/databricks/sql/auth/oauth.py
@@ -247,6 +247,13 @@ def _on_timeout():
247
logger.error(msg)
248
raise RuntimeError(msg) from e
249
except Exception as e:
250
+ # Record here too (like the OSError branch above) so the
251
+ # fall-through `raise last_error` always re-raises a real
252
+ # exception. If a non-OSError/non-webbrowser.Error is raised on
253
+ # every port, last_error would otherwise stay None and turn
254
+ # `raise last_error` into `raise None`, masking the real failure
255
+ # with a confusing TypeError.
256
+ last_error = e
257
logger.error("unexpected error: %s", e)
258
if self.redirect_port is None:
259
logger.error(
0 commit comments