aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/bbg_helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/bbg_helpers.py b/python/bbg_helpers.py
index b4892891..7e4189f9 100644
--- a/python/bbg_helpers.py
+++ b/python/bbg_helpers.py
@@ -59,6 +59,8 @@ def event_loop(session, request):
def get_pythonvalue(e):
+ if e.isNull():
+ return None
if e.datatype() == blpapi.DataType.DATE:
return pd.to_datetime(e.getValue())
elif e.datatype() == blpapi.DataType.DATETIME: