fixing local variable 'export' referenced before assignment (#6545)

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
This commit is contained in:
Henrique Joaquim
2024-06-26 15:08:53 +01:00
committed by GitHub
parent 5e69ce3d25
commit 34122c4524

View File

@@ -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: