BUG: Do not try to set non-existent items.

This commit is contained in:
Thomas Wiecki
2013-06-20 18:32:05 -04:00
committed by Eddie Hebert
parent aca338c9e5
commit 33c23af503
+2
View File
@@ -520,6 +520,8 @@ class BatchTransform(object):
if self.supplemental_data:
for item in data.items:
# axes[1] (minor axis) will be a date stamp
if item not in self.supplemental_data.major_axis:
continue
for dt in data.axes[1]:
try:
supplemental_for_date = self.supplemental_data[dt]