Skip to content

Commit baba4a9

Browse files
committed
Mention ValueError cause in docstring.
1 parent fe494bb commit baba4a9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

canopen/pdo/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ def start(self, period: Optional[float] = None) -> None:
551551
:param period:
552552
Transmission period in seconds. Can be omitted if :attr:`period` has been set
553553
on the object before.
554-
:raises ValueError: When neither the argument nor the :attr:`period` is given.
554+
555+
:raises ValueError:
556+
When neither the argument nor the :attr:`period` is given, or no COB-ID assigned.
555557
"""
556558
# Stop an already running transmission if we have one, otherwise we
557559
# overwrite the reference and can lose our handle to shut it down

0 commit comments

Comments
 (0)