aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/objectify.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-09-11 20:55:16 +0300
committerFilipp Lepalaan <f@230.to>2013-09-11 20:55:16 +0300
commit8a648dc872844ab77453858bc003655b3110e1c7 (patch)
tree1ae74714996c6ded32a75f0a3d179e03addf2604 /gsxws/objectify.py
parentc32c20e90ddcc3c803a7c1ff649259e8a2fe058f (diff)
downloadpy-gsxws-8a648dc872844ab77453858bc003655b3110e1c7.tar.gz
py-gsxws-8a648dc872844ab77453858bc003655b3110e1c7.tar.bz2
py-gsxws-8a648dc872844ab77453858bc003655b3110e1c7.zip
Return empty string on non-existent attribute
Diffstat (limited to 'gsxws/objectify.py')
-rw-r--r--gsxws/objectify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsxws/objectify.py b/gsxws/objectify.py
index 0fe2e1f..6347eb1 100644
--- a/gsxws/objectify.py
+++ b/gsxws/objectify.py
@@ -82,10 +82,10 @@ class GsxElement(objectify.ObjectifiedElement):
"""
The XML returned by GSX can be pretty inconsistent, especially
between the different environments. It's therefore more
- practical to return None than to expect AttributeErrors all
+ practical to return and empty string than to expect AttributeErrors all
over your application.
"""
- return
+ return ''
if isinstance(result, objectify.NumberElement):
return result.pyval