Skip to content

Commit 01b5242

Browse files
authored
Set stacklevel for warnings.warn
Signed-off-by: Harutaka Kawamura <[email protected]>
1 parent ad0e9f1 commit 01b5242

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

databricks/sdk/errors/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def __init__(
8585
# Retry-after is deprecated.
8686
if retry_after_secs:
8787
warnings.warn(
88-
"The 'retry_after_secs' parameter of DatabricksError is deprecated and will be removed in a future version."
88+
"The 'retry_after_secs' parameter of DatabricksError is deprecated and will be removed in a future version.",
89+
stacklevel=2,
8990
)
9091

9192
if detail:

0 commit comments

Comments
 (0)