summaryrefslogtreecommitdiffstats
path: root/ipa-python/entity.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-python/entity.py')
-rw-r--r--ipa-python/entity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipa-python/entity.py b/ipa-python/entity.py
index 2f0629cda..7afc3e63a 100644
--- a/ipa-python/entity.py
+++ b/ipa-python/entity.py
@@ -79,9 +79,9 @@ class Entity:
"""Get the list (array) of values for the attribute named name"""
return self.data.get(name)
- def getValue(self,name):
+ def getValue(self,name,default=None):
"""Get the first value for the attribute named name"""
- value = self.data.get(name,[None])
+ value = self.data.get(name,default)
if isinstance(value,list) or isinstance(value,tuple):
return value[0]
else: