Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Games
trosnoth
Commits
e78dd09c5708
Commit
8174ff7e
authored
Jan 21, 2021
by
talljosh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to show the original KeyError in tracebacks when NoStationaryPointHere is raised.
parent
e688642720c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
trosnoth/bots/pathfinding.py
trosnoth/bots/pathfinding.py
+1
-1
No files found.
trosnoth/bots/pathfinding.py
View file @
e78dd09c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment