Skip to content

Commit 80d7390

Browse files
authored
fix: Invert success check for set_param function (#1133)
1 parent fc55974 commit 80d7390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rosapi/src/rosapi/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ async def _set_param(
178178

179179
assert result is not None
180180
param_results = next(iter(result.results))
181-
if param_results.successful:
181+
if not param_results.successful:
182182
raise Exception(param_results.reason)
183183

184184

0 commit comments

Comments
 (0)