Skip to content

Commit 0ad4618

Browse files
author
Michael Koval
committed
Fixed a DeprecationWarning in exception printing.
1 parent f24a137 commit 0ad4618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prpy/planning/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def PlanWorkspacePath(self, robot, traj, timelimit=5.0,
226226
# Otherwise we'll gracefully terminate.
227227
else:
228228
logger.warning('Terminated early at time %f < %f: %s',
229-
t, traj.GetDuration(), e.message)
229+
t, traj.GetDuration(), str(e))
230230

231231
# Return as much of the trajectory as we have solved.
232232
SetTrajectoryTags(qtraj, {Tags.CONSTRAINED: True}, append=True)

0 commit comments

Comments
 (0)