From 40c839720efaa44915e6ed6aa02f00ec6e4be82e Mon Sep 17 00:00:00 2001 From: "Ching Yi, Chan" Date: Thu, 5 Oct 2023 15:59:57 +0800 Subject: [PATCH] Only ignore table-not-found Signed-off-by: Ching Yi, Chan --- piperider_cli/profiler/profiler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/piperider_cli/profiler/profiler.py b/piperider_cli/profiler/profiler.py index bbc906217..a79fec62a 100644 --- a/piperider_cli/profiler/profiler.py +++ b/piperider_cli/profiler/profiler.py @@ -163,9 +163,12 @@ def _fetch_table_task(subject: ProfileSubject): table = None try: table = Table(subject.table, MetaData(), autoload_with=engine, schema=schema) - except Exception: + except Exception as e: # ignore the table metadata fetch error - pass + if "NoSuchTableError" in str(e): + pass + else: + capture_exception(e) return subject, table future = _run_in_executor(self.executor, _fetch_table_task, subject)