Skip to content

Commit

Permalink
quiet blind except warnings
Browse files Browse the repository at this point in the history
#310 (comment)

Signed-off-by: Harsh Deshpande <harshavardhan.deshpande@ipa.fraunhofer.de>
  • Loading branch information
hsd-dev committed May 10, 2021
1 parent 51460e8 commit 9382a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros1_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def get_ros2_messages():
if all(n not in data for n in ('ros1_service_name', 'ros2_service_name')):
try:
rules.append(MessageMappingRule(data, package_name))
except Exception as e:
except Exception as e: # noqa: B902
print('%s' % str(e), file=sys.stderr)
return pkgs, msgs, rules

Expand Down Expand Up @@ -341,7 +341,7 @@ def get_ros2_services():
if all(n not in data for n in ('ros1_message_name', 'ros2_message_name')):
try:
rules.append(ServiceMappingRule(data, package_name))
except Exception as e:
except Exception as e: # noqa: B902
print('%s' % str(e), file=sys.stderr)
return pkgs, srvs, rules

Expand Down

0 comments on commit 9382a3f

Please sign in to comment.