diff --git a/doc/salome/examples/find_salome_actor_delegate_to_vtk.py b/doc/salome/examples/find_salome_actor_delegate_to_vtk.py index e008b7604..df8dd13f4 100644 --- a/doc/salome/examples/find_salome_actor_delegate_to_vtk.py +++ b/doc/salome/examples/find_salome_actor_delegate_to_vtk.py @@ -5,5 +5,5 @@ import os import sys -result = 'SALOME_ACTOR_DELEGATE_TO_VTK' in os.environ -sys.exit(int(not result)) +if 'SALOME_ACTOR_DELEGATE_TO_VTK' not in os.environ: + raise RuntimeError('SALOME_ACTOR_DELEGATE_TO_VTK is not set!')