Skip to content

Commit

Permalink
Fix #1032 (#1033)
Browse files Browse the repository at this point in the history
Use `status_message` from `SetCameraInfo` response instead of some
non-existing `result()`.
Fixes #1032

Co-authored-by: ugol-1 <ugol-1@potatomatic.com>
  • Loading branch information
ugol-1 and ugol-1 authored Sep 17, 2024
1 parent dbf697d commit 731b43c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ def check_set_camera_info(self, response):
for i in range(10):
print("!" * 80)
print()
print("Attempt to set camera info failed: " + response.result()
if response.result() is not None else "Not available")
print("Attempt to set camera info failed: " + response.status_message
if response.status_message is not None else "Not available")
print()
for i in range(10):
print("!" * 80)
print()
self.get_logger().error('Unable to set camera info for calibration. Failure message: %s' %
response.result() if response.result() is not None else "Not available")
response.status_message if response.status_message is not None else "Not available")
return False

def do_upload(self):
Expand Down

0 comments on commit 731b43c

Please sign in to comment.