Skip to content

Commit fccf7fc

Browse files
try-except hiddens the output
Signed-off-by: João Lucas de Sousa Almeida <[email protected]>
1 parent 06d883d commit fccf7fc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

terratorch/models/generic_unet_model_factory.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ def build_model(
4141
msg = f"SMP models can only perform pixel wise tasks, but got task {task}"
4242
raise Exception(msg)
4343

44-
try:
45-
mmseg = importlib.import_module("mmseg.models.decode_heads")
46-
except:
47-
raise Exception("The module 'mmseg' is not installed or not accessible via PYTHONPATH.")
44+
mmseg = importlib.import_module("mmseg.models.decode_heads")
4845

4946
model_class = getattr(mmseg, model)
5047

0 commit comments

Comments
 (0)