Skip to content

Commit d991040

Browse files
authored
Fix message text in NotImplementedError (#325)
1 parent d260f07 commit d991040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/betterproto/plugin/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def py_type(self) -> str:
524524
source_type=self.proto_obj.type_name,
525525
)
526526
else:
527-
raise NotImplementedError(f"Unknown type {field.type}")
527+
raise NotImplementedError(f"Unknown type {self.proto_obj.type}")
528528

529529
@property
530530
def annotation(self) -> str:

0 commit comments

Comments
 (0)