Skip to content

Commit

Permalink
Document that Future.result() may return None (#884)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Jan 25, 2022
1 parent d73887b commit 066e08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclpy/rclpy/task.py
Expand Up @@ -88,7 +88,7 @@ def result(self):
:raises: Exception if one was set during the task.
:return: The result set by the task
:return: The result set by the task, or None if no result was set.
"""
if self._exception:
raise self.exception()
Expand Down

0 comments on commit 066e08d

Please sign in to comment.