Skip to content

Commit

Permalink
include fields on Exceptions, this addresses missing fields on Except…
Browse files Browse the repository at this point in the history
…ion structs
  • Loading branch information
mjpizz authored and unmade committed Jul 27, 2023
1 parent 696b810 commit fa17ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thriftpyi/proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa17ca0

Please sign in to comment.