aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-09-13 10:13:53 +0300
committerFilipp Lepalaan <f@230.to>2013-09-13 10:13:53 +0300
commit273ed82b3222b106717936ecc29d6736f62216e2 (patch)
tree1ef7091faa171f39c92476b20c9532f0a7a0ebe8 /gsxws
parent7d8cbde674ecafb9f6c2889a8eb5ea8f7f3d39c6 (diff)
downloadpy-gsxws-273ed82b3222b106717936ecc29d6736f62216e2.tar.gz
py-gsxws-273ed82b3222b106717936ecc29d6736f62216e2.tar.bz2
py-gsxws-273ed82b3222b106717936ecc29d6736f62216e2.zip
Return None on non-existant elements
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/objectify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws/objectify.py b/gsxws/objectify.py
index 6347eb1..e310115 100644
--- a/gsxws/objectify.py
+++ b/gsxws/objectify.py
@@ -85,7 +85,7 @@ class GsxElement(objectify.ObjectifiedElement):
practical to return and empty string than to expect AttributeErrors all
over your application.
"""
- return ''
+ return None
if isinstance(result, objectify.NumberElement):
return result.pyval