Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_set_camera_info() code clean-up #1034

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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