mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 06:51:38 +00:00
fixing local variable 'export' referenced before assignment (#6546)
This commit is contained in:
@@ -162,7 +162,7 @@ class PlatformController(BaseController):
|
||||
):
|
||||
try:
|
||||
ns_parser = self._intersect_data_processing_commands(ns_parser)
|
||||
|
||||
export = hasattr(ns_parser, "export") and ns_parser.export
|
||||
store_obbject = (
|
||||
hasattr(ns_parser, "register_obbject")
|
||||
and ns_parser.register_obbject
|
||||
@@ -228,8 +228,6 @@ class PlatformController(BaseController):
|
||||
# making the dataframe available either for printing or exporting
|
||||
df = obbject.to_dataframe()
|
||||
|
||||
export = hasattr(ns_parser, "export") and ns_parser.export
|
||||
|
||||
if hasattr(ns_parser, "chart") and ns_parser.chart:
|
||||
fig = obbject.chart.fig if obbject.chart else None
|
||||
if not export:
|
||||
|
||||
Reference in New Issue
Block a user