From 723ec8b0ea7653246fc4b83b375610aa912e4f81 Mon Sep 17 00:00:00 2001 From: 0xDareDevil <114890815+0xDareDevil@users.noreply.github.com> Date: Sun, 23 Oct 2022 21:31:02 +0530 Subject: [PATCH] Fixed bug giving exception when calling balance (#2998) Co-authored-by: James Maslek --- openbb_terminal/cryptocurrency/due_diligence/binance_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbb_terminal/cryptocurrency/due_diligence/binance_view.py b/openbb_terminal/cryptocurrency/due_diligence/binance_view.py index a67e106be7f..5e5b51be97f 100644 --- a/openbb_terminal/cryptocurrency/due_diligence/binance_view.py +++ b/openbb_terminal/cryptocurrency/due_diligence/binance_view.py @@ -78,7 +78,7 @@ def display_balance( df = get_balance(from_symbol, to_symbol) - if not df or df.empty: + if df is None or df.empty: console.print("[red]No data found[/red]\n") return