File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 11import re
2- import warnings
32from dataclasses import dataclass
43from 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 []
You can’t perform that action at this time.
0 commit comments