Skip to content

Commit

Permalink
add try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 27, 2023
1 parent 397310e commit 0f786ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/plugins/bioengine-test-run.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,11 @@
)
await vtk_viewer.setImage(image)
if self.vtk_viewer:
await self.vtk_viewer.sync(vtk_viewer)
await vtk_viewer.sync(self.vtk_viewer)
try:
await self.vtk_viewer.sync(vtk_viewer)
await vtk_viewer.sync(self.vtk_viewer)
except Exception as exp:
await api.log(f"Failed to sync the vtk viewers: {exp}")

self.vtk_viewer = vtk_viewer

Expand Down

0 comments on commit 0f786ee

Please sign in to comment.