diff options
author | Filipp Lepalaan <f@230.to> | 2013-09-13 10:13:53 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-09-13 10:13:53 +0300 |
commit | 273ed82b3222b106717936ecc29d6736f62216e2 (patch) | |
tree | 1ef7091faa171f39c92476b20c9532f0a7a0ebe8 /gsxws/objectify.py | |
parent | 7d8cbde674ecafb9f6c2889a8eb5ea8f7f3d39c6 (diff) | |
download | py-gsxws-273ed82b3222b106717936ecc29d6736f62216e2.tar.gz py-gsxws-273ed82b3222b106717936ecc29d6736f62216e2.tar.bz2 py-gsxws-273ed82b3222b106717936ecc29d6736f62216e2.zip |
Return None on non-existant elements
Diffstat (limited to 'gsxws/objectify.py')
-rw-r--r-- | gsxws/objectify.py | 2 |
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 |