Skip to content

Commit aad876b

Browse files
committed
fix: resolve NameError for InternalServerError in errors.py (v0.1.3)
1 parent 9bbcc40 commit aad876b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "uapi-sdk-python"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "Idiomatic UAPI SDK for Python"
99
readme = "README.md"
1010
requires-python = ">=3.9"

uapi/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ def _class_by_code(code: str, status: int):
150150
"UNSUPPORTED_FORMAT": UnsupportedFormatError,
151151

152152
}
153-
return mapping.get(c) or ( {400: InvalidParameterError, 401: UnauthorizedError, 404: NotFoundError, 429: ServiceBusyError, 500: InternalServerError}.get(status) or UapiError )
153+
return mapping.get(c) or ( {400: InvalidParameterError, 401: UnauthorizedError, 404: NotFoundError, 429: ServiceBusyError, 500: InternalServerErrorError}.get(status) or UapiError )

0 commit comments

Comments
 (0)