From 7010eee0f8d7f4b1737852d527df9ae44a17c743 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 10 Aug 2022 12:28:53 -0400 Subject: [PATCH] fix linting Co-authored-by: jhdcs <48914066+jhdcs@users.noreply.github.com> --- ros2bag/ros2bag/verb/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros2bag/ros2bag/verb/record.py b/ros2bag/ros2bag/verb/record.py index 902cf222c4..29be8fc1c6 100644 --- a/ros2bag/ros2bag/verb/record.py +++ b/ros2bag/ros2bag/verb/record.py @@ -178,7 +178,7 @@ def main(self, *, args): # noqa: D102 if (args.all and (args.topics or args.regex)) or (args.topics and args.regex): return print_error('Must specify only one option out of topics, --regex or --all') # one out of "all", "topics" and "regex" must be true - if not(args.all or (args.topics and len(args.topics) > 0) or (args.regex) or \ + if not(args.all or (args.topics and len(args.topics) > 0) or (args.regex) or (args.services and len(args.services) > 0)): return print_error( 'Invalid choice: Must specify topic(s), --services, --regex or --all')