Skip to content

Commit 242c721

Browse files
committed
fix variable name
1 parent dc414d1 commit 242c721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/unstructured_client/utils/_decorators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def suggest_defining_url_if_401(
7777
def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> operations.PartitionResponse:
7878
try:
7979
return func(*args, **kwargs)
80-
except errors.SDKError as e:
81-
if e.status_code == 401:
80+
except errors.SDKError as error:
81+
if error.status_code == 401:
8282
general_obj: General = args[0] # type: ignore
8383
if not general_obj.sdk_configuration.server_url:
8484
warnings.warn(

0 commit comments

Comments
 (0)