mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
adds check for empty dataframe
This commit is contained in:
@@ -545,7 +545,7 @@ def display_candle(
|
||||
start_date = check_datetime(start_date)
|
||||
end_date = check_datetime(end_date, start=False)
|
||||
|
||||
if data is None:
|
||||
if data is None or data.empty:
|
||||
data = load(
|
||||
symbol,
|
||||
start_date,
|
||||
|
||||
Reference in New Issue
Block a user