Update profiler_interface.py (#14287)

Transpose row=None before try statement in compute_metrics_in_thread function

Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
Aldwyn Cabarrubias 2023-12-21 17:37:59 +08:00 committed by GitHub
parent 7f0f8c54bc
commit 0e4f80899e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,6 +437,7 @@ class SQAProfilerInterface(ProfilerInterface, SQAInterfaceMixin):
metric_func.table,
sample,
)
row = None
try:
row = self._get_metric_fn[metric_func.metric_type.value](
@ -453,7 +454,6 @@ class SQAProfilerInterface(ProfilerInterface, SQAInterfaceMixin):
)
logger.error(error)
self.status.failed_profiler(error, traceback.format_exc())
row = None
if metric_func.column is not None:
column = metric_func.column.name