Skip to content

Commit

Permalink
check_set_camera_info() code clean-up (#1034)
Browse files Browse the repository at this point in the history
Removed the unnecessary `if response.status_message is not None` checks

Co-authored-by: ugol-1 <[email protected]>
  • Loading branch information
ugol-1 and ugol-1 authored Sep 20, 2024
1 parent 731b43c commit ed44598
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 ed44598

Please sign in to comment.