From 4156aadb9a6c01b05bfee04353597815a255796b Mon Sep 17 00:00:00 2001 From: Tim Field Date: Tue, 11 May 2010 23:19:30 +0000 Subject: [PATCH] rosbag: fix --key behaviour with Boolean values --- tools/rosbag/src/rosbag/rosbag_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rosbag/src/rosbag/rosbag_main.py b/tools/rosbag/src/rosbag/rosbag_main.py index 94c8275d..b7a6ebff 100644 --- a/tools/rosbag/src/rosbag/rosbag_main.py +++ b/tools/rosbag/src/rosbag/rosbag_main.py @@ -117,7 +117,7 @@ def info_cmd(argv): b = Bag(arg) if options.yaml: info = b._get_yaml_info(key=options.key) - if info: + if info is not None: print info else: print b