Skip to content

Commit 01f30e7

Browse files
committed
Release v0.1.21
### Fixed - Added missing `import traceback` in `__init__.py`. This resolves a `NameError` when using `register_exception_handlers` with traceback logging enabled.
1 parent 28e5677 commit 01f30e7

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,17 @@ Benchmark scripts and raw Locust reports are available in the [benchmark](https:
410410

411411
## 📜 Changelog
412412

413-
**v0.1.20 - 2025-08-18**
413+
##v0.1.21 - 2025-08-18**
414414
**Initial stable and suggested version**
415415

416416

417+
### Fixed
418+
- Added missing `import traceback` in `__init__.py`.
419+
This resolves a `NameError` when using `register_exception_handlers` with traceback logging enabled.
420+
421+
422+
**v0.1.20 - 2025-08-18**
423+
417424
#### Changed
418425
- Restructured `__init__.py` to use **relative imports** (`from .module import ...`) instead of absolute imports for cleaner packaging and IDE compatibility.
419426
- Unified all public exports under `__all__` so that consumers can simply `from api_exception import ...` without needing sub-module paths.

api_exception/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import traceback
12
from typing import Callable
23

34
from fastapi import FastAPI, Request
@@ -26,7 +27,7 @@
2627
"ResponseModel",
2728
"ResponseFormat",
2829
"RFC7807ResponseModel",
29-
"register_exception_handlers", # bu fonksiyon aşağıda tanımlı kalıyor
30+
"register_exception_handlers",
3031
"set_default_http_codes",
3132
"logger",
3233
"add_file_handler",

docs/changelog.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
All notable changes to APIException will be documented here.
44
This project uses *Semantic Versioning*.
55

6-
## [0.1.20] - 2025-08-18
6+
## [0.1.21] - 2025-08-18
77
✅ Stable release!
88
**Initial stable and suggested version**
99

10+
### Fixed
11+
- Added missing `import traceback` in `__init__.py`.
12+
This resolves a `NameError` when using `register_exception_handlers` with traceback logging enabled.
13+
14+
15+
## [0.1.20] - 2025-08-18
16+
1017
#### Changed
1118
- Refactored `__init__.py` to use relative imports (`from .module import ...`) for cleaner packaging and better IDE compatibility.
1219
- Unified and simplified `__all__` so developers can import everything directly from `api_exception` (e.g. `from api_exception import ResponseModel, APIException`).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "apiexception"
3-
version = "0.1.20"
3+
version = "0.1.21"
44
description = "Consistent JSON response formatting and exception & error handling for FastAPI applications"
55
authors = ["Ahmet Kutay URAL <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)