Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix] Fixing local variable 'export' referenced before assignment #6546

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions cli/openbb_cli/controllers/base_platform_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def method(self, other_args: List[str], translator=translator):
):
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
Expand Down Expand Up @@ -228,8 +228,6 @@ def method(self, other_args: List[str], translator=translator):
# 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:
Expand Down
Loading