Commit 8174ff7e authored by talljosh's avatar talljosh

No need to show the original KeyError in tracebacks when NoStationaryPointHere is raised.

parent e688642720c9
......@@ -2858,7 +2858,7 @@ class DiscretisationDatabase:
try:
result = self.data[regionName][dbLocKey]
except KeyError:
raise NoStationaryPointHere((regionName, locKey))
raise NoStationaryPointHere((regionName, locKey)) from None
if flipped:
offset, angle = result
result = mirrorOffsetAndAngle(offset, angle)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment