diff options
author | Henrique Joaquim <henriquecjoaquim@gmail.com> | 2024-06-26 15:08:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 14:08:53 +0000 |
commit | 34122c4524df379d1b17ccd9c1bbae6455e046ba (patch) | |
tree | 7b100efe5178b4d2894995448adfd0dc43471e88 | |
parent | 5e69ce3d259d3af6660c99ae22963e107e3bc77e (diff) |
fixing local variable 'export' referenced before assignment (#6545)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
-rw-r--r-- | cli/openbb_cli/controllers/base_platform_controller.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/openbb_cli/controllers/base_platform_controller.py b/cli/openbb_cli/controllers/base_platform_controller.py index a3cd0d1527c..d8363bec9b5 100644 --- a/cli/openbb_cli/controllers/base_platform_controller.py +++ b/cli/openbb_cli/controllers/base_platform_controller.py @@ -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: |