Skip to content

Commit

Permalink
Attempting to fix workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Oct 12, 2023
1 parent 0ae2ba0 commit 96b018f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions node_normalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ async def get_eqids_and_types(
for index, typ in enumerate(types):
if not typ:
logging.error(f"No type information found for '{canonical_nonan[index]}' with eqids: {eqids[index]}.")
types_with_ancestors.append(None)
types_with_ancestors.append([None])
else:
types_with_ancestors.append(get_ancestors(app, typ))
return eqids, types_with_ancestors
Expand Down Expand Up @@ -583,10 +583,8 @@ async def get_normalized_nodes(
t = []

for other in dereference_others[canonical_id]:
if deref_others_eqs[other]:
e += deref_others_eqs[other]
if deref_others_typ[other]:
t += deref_others_typ[other]
e += deref_others_eqs[other]
t += deref_others_typ[other]

final_eqids.append(e)
final_types.append(uniquify_list(t))
Expand Down

0 comments on commit 96b018f

Please sign in to comment.