We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc414d1 commit 242c721Copy full SHA for 242c721
src/unstructured_client/utils/_decorators.py
@@ -77,8 +77,8 @@ def suggest_defining_url_if_401(
77
def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> operations.PartitionResponse:
78
try:
79
return func(*args, **kwargs)
80
- except errors.SDKError as e:
81
- if e.status_code == 401:
+ except errors.SDKError as error:
+ if error.status_code == 401:
82
general_obj: General = args[0] # type: ignore
83
if not general_obj.sdk_configuration.server_url:
84
warnings.warn(
0 commit comments