Skip to content

Commit

Permalink
Cleaner code in CalibrationNode.check_set_camera_info() (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugol-1 committed Sep 20, 2024
1 parent 731b43c commit bc523f3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,12 @@ def check_set_camera_info(self, response):
for i in range(10):
print("!" * 80)
print()
print("Attempt to set camera info failed: " + response.status_message
if response.status_message is not None else "Not available")
print(f"Attempt to set camera info failed: {response.status_message}")
print()
for i in range(10):
print("!" * 80)
print()
self.get_logger().error('Unable to set camera info for calibration. Failure message: %s' %
response.status_message if response.status_message is not None else "Not available")
self.get_logger().error(f'Unable to set camera info for calibration. Failure message: {response.status_message}')
return False

def do_upload(self):
Expand Down

0 comments on commit bc523f3

Please sign in to comment.