Skip to content

Commit 92ef03a

Browse files
committed
Add nicer error when init fails
1 parent 6a82399 commit 92ef03a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/everest/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
44
"""
55

6-
from .loader import load
6+
try:
7+
from .loader import load
8+
except Exception as e:
9+
print(
10+
f"Error during initialization: {e}\nPlease make sure that everest is installed correctly and that all dependencies are updated."
11+
)
12+
import sys
13+
14+
sys.exit(1)
715

816
try:
917
from ert.shared.version import version

0 commit comments

Comments
 (0)