Skip to content

Commit

Permalink
fix Chiral Rings exception (UnknownStrangeLoops is not defined in blu…
Browse files Browse the repository at this point in the history
…eprints)
  • Loading branch information
egocarib committed Jun 24, 2024
1 parent ddb89d4 commit 083e50a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hagadias/qudobject_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,10 @@ def unidentifiedaltname(self) -> str | None:
return "small *color* tube"
else:
alt_obj_name = alt_obj_name if alt_obj_name is not None else "BaseUnknown"
alt_obj = self.qindex[alt_obj_name]
try:
alt_obj = self.qindex[alt_obj_name]
except KeyError:
alt_obj = self.qindex["BaseUnknown"]
alt_name = QudObjectProps.title.__get__(alt_obj)
return alt_name

Expand Down

0 comments on commit 083e50a

Please sign in to comment.