Skip to content

Commit

Permalink
Only ignore table-not-found
Browse files Browse the repository at this point in the history
Signed-off-by: Ching Yi, Chan <[email protected]>
  • Loading branch information
qrtt1 committed Oct 5, 2023
1 parent 1599492 commit 40c8397
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions piperider_cli/profiler/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 169 in piperider_cli/profiler/profiler.py

View check run for this annotation

Codecov / codecov/patch

piperider_cli/profiler/profiler.py#L168-L169

Added lines #L168 - L169 were not covered by tests
else:
capture_exception(e)

Check warning on line 171 in piperider_cli/profiler/profiler.py

View check run for this annotation

Codecov / codecov/patch

piperider_cli/profiler/profiler.py#L171

Added line #L171 was not covered by tests
return subject, table

future = _run_in_executor(self.executor, _fetch_table_task, subject)
Expand Down

0 comments on commit 40c8397

Please sign in to comment.