Skip to content

Commit

Permalink
Fix regression: Without an active stereo config the viewer would crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Jeretina committed Oct 4, 2024
1 parent cfe4f14 commit 5a173e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rerun_py/depthai_viewer/_backend/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,9 @@ def update_pipeline(self, runtime_only: bool) -> Message:

# Make sure that it's possible to create stereo depth
try:
stereo_pair = config.stereo.stereo_pair
self._oak.device.readCalibration2().getCameraExtrinsics(stereo_pair[0], stereo_pair[1])
if config.stereo:
stereo_pair = config.stereo.stereo_pair
self._oak.device.readCalibration2().getCameraExtrinsics(stereo_pair[0], stereo_pair[1])
except RuntimeError:
config.stereo = None
if config.stereo:
Expand Down

0 comments on commit 5a173e3

Please sign in to comment.