Skip to content

Commit 9f69db9

Browse files
Remove warning
1 parent 8812096 commit 9f69db9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

databricks/sdk/errors/base.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import re
2-
import warnings
32
from dataclasses import dataclass
43
from typing import Any, Dict, List, Optional
54

@@ -76,7 +75,7 @@ def __init__(
7675

7776
super().__init__(message if message else error)
7877
self.error_code = error_code
79-
self._retry_after_secs = retry_after_secs
78+
self.retry_after_secs = retry_after_secs
8079
self._error_details = errdetails.parse_error_details(details or [])
8180
self.kwargs = kwargs
8281

@@ -88,13 +87,6 @@ def __init__(
8887
continue
8988
self.details.append(ErrorDetail.from_dict(d))
9089

91-
@property
92-
def retry_after_secs(self) -> Optional[int]:
93-
warnings.warn(
94-
"The 'retry_after_secs' parameter of DatabricksError is deprecated and will be removed in a future version."
95-
)
96-
return self._retry_after_secs
97-
9890
def get_error_info(self) -> List[ErrorDetail]:
9991
if self.details is None:
10092
return []

0 commit comments

Comments
 (0)