diff options
Diffstat (limited to 'python/typelibrary.py')
| -rw-r--r-- | python/typelibrary.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py index 724f8c5e..232cd6a0 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -183,6 +183,8 @@ class TypeLibrary: def add_alternate_name(self, name: str) -> None: """Adds an extra name to this type library used during library lookups and dependency resolution""" + if type(name) != str: + raise ValueError(f"Expected name to be str, got {type(name)}") core.BNAddTypeLibraryAlternateName(self.handle, name) @property |
