diff --git a/src/thriftpyi/proxies.py b/src/thriftpyi/proxies.py index 31f55ef..8e298c4 100644 --- a/src/thriftpyi/proxies.py +++ b/src/thriftpyi/proxies.py @@ -69,7 +69,7 @@ def _make_exception(texc) -> ModuleItem: if fields: methods.append(Method(name="__init__", args=fields)) - return ModuleItem(name=texc.__name__, methods=methods) + return ModuleItem(name=texc.__name__, methods=methods, fields=fields) @classmethod def _make_service(cls, tservice) -> ModuleItem: