diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/typearchive.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/typearchive.py b/python/typearchive.py index 379c7d4c..60897d94 100644 --- a/python/typearchive.py +++ b/python/typearchive.py @@ -262,6 +262,8 @@ class TypeArchive: :param new_name: New type name """ id = self.get_type_id(old_name) + if id is None: + raise RuntimeError(f"Unknown type {old_name}") return self.rename_type_by_id(id, new_name) def rename_type_by_id(self, id: str, new_name: '_types.QualifiedNameType') -> None: |
