Skip to content

Commit

Permalink
fix: ignore links from invalid tables
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Dec 13, 2023
1 parent 79eb1a7 commit c57e57f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,12 @@ def get_dynamic_link_map(self):
if df.issingle:
dynamic_link_map.setdefault(df.parent, []).append(df)
else:
links = self.db_conn.execute(
f"""select distinct {df.options} from `tab{df.parent}`"""
).fetchall()
try:
links = self.db_conn.execute(
f"""select distinct {df.options} from `tab{df.parent}`"""
).fetchall()
except BaseException:
continue
links = [l[0] for l in links]
for doctype in links:
dynamic_link_map.setdefault(doctype, []).append(df)
Expand Down

0 comments on commit c57e57f

Please sign in to comment.