BUG: Raise if we fail to symbol map a Frame/Panel.

Previously, we just warned here, but then we'd fail immediately trying
to write the found values into an index that's too long.
This commit is contained in:
Scott Sanderson
2015-11-03 15:58:02 -05:00
parent ff51510d88
commit 5bddf32062
+2 -4
View File
@@ -15,7 +15,6 @@
from abc import ABCMeta
from numbers import Integral
from operator import itemgetter
import warnings
from logbook import Logger
import numpy as np
@@ -720,9 +719,8 @@ class AssetFinder(object):
self._lookup_generic_scalar(identifier, as_of_date,
matches, missing)
# Handle missing assets
if len(missing) > 0:
warnings.warn("Missing assets for identifiers: %s" % missing)
if missing:
raise ValueError("Missing assets for identifiers: %s" % missing)
# Return a list of the sids of the found assets
return [asset.sid for asset in matches]