mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 15:52:52 +08:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user