Skip to content

Commit f7bdddf

Browse files
Splinter1984eboasson
authored andcommitted
ddspy: apply suggestions from #301.
Fix exception messages.
1 parent 23de5e3 commit f7bdddf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyclonedds/qos_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(
4343
bpath, ct.byref(self._qos_provider), bscope
4444
)
4545
if ret < 0 or not self._qos_provider:
46-
raise DDSException(ret, f"Occured when initialize {repr(self)}")
46+
raise DDSException(ret, f"Occured while initializing {repr(self)}")
4747

4848
def _get_qos_kind(self, key: str, kind: qos_kind) -> Qos:
4949
bkey = key.encode('utf-8')
@@ -52,7 +52,7 @@ def _get_qos_kind(self, key: str, kind: qos_kind) -> Qos:
5252
self._qos_provider, kind, bkey, ct.byref(cqos)
5353
)
5454
if ret < 0:
55-
raise DDSException(ret, f"Occured trying to get_topic_qos {repr(self)}")
55+
raise DDSException(ret, f"Occured trying to get_qos {repr(self)}")
5656
return _CQos.cqos_to_qos(cqos)
5757

5858
def get_datawriter_qos(self, key: str = "") -> 'DataWriterQos':

0 commit comments

Comments
 (0)