mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 22:35:34 +08:00
ENH: suggest running ingest if no data exists
This commit is contained in:
@@ -404,12 +404,13 @@ def _make_bundle_core():
|
||||
environ=environ,
|
||||
)
|
||||
except (ValueError, OSError) as e:
|
||||
if getattr(e, 'errno', ~errno.ENOENT) != errno.ENOENT:
|
||||
if getattr(e, 'errno', errno.ENOENT) != errno.ENOENT:
|
||||
raise
|
||||
raise ValueError(
|
||||
'no data for bundle %r on or before %s' % (
|
||||
bundle_name,
|
||||
timestamp,
|
||||
'no data for bundle {bundle!r} on or before {timestamp}\n'
|
||||
'maybe you need to run: $ zipline ingest {bundle}'.format(
|
||||
bundle=bundle_name,
|
||||
timestamp=timestamp,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user