refs #200 raise ValueError if an object doesn't have a name

This commit is contained in:
Michael Ligh
2020-07-01 20:51:22 +01:00
committed by ikelos
parent 944bf2174f
commit 87ff6dd87c
7 changed files with 14 additions and 6 deletions
@@ -319,7 +319,7 @@ class Handles(interfaces.plugins.PluginInterface):
else:
try:
obj_name = entry.NameInfo.Name.String
except exceptions.InvalidAddressException:
except (ValueError, exceptions.InvalidAddressException):
obj_name = ""
except (exceptions.InvalidAddressException):