Skip to content

Commit

Permalink
#529: guard vtk import in try/except block
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Sep 12, 2024
1 parent d5d88a4 commit 4c6af56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lbaf/IO/lbsGridStreamer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from typing import Optional

import vtk
try:
import vtk
using_vtk = True
except ModuleNotFoundError:
using_vtk = False

from ..Utils.lbsLogging import Logger, get_logger

Expand Down

0 comments on commit 4c6af56

Please sign in to comment.