diff --git a/nemo/collections/nlp/data/language_modeling/megatron/retro_dataset.py b/nemo/collections/nlp/data/language_modeling/megatron/retro_dataset.py index d8dafd69c658..e064dbf14d5d 100644 --- a/nemo/collections/nlp/data/language_modeling/megatron/retro_dataset.py +++ b/nemo/collections/nlp/data/language_modeling/megatron/retro_dataset.py @@ -47,7 +47,7 @@ HAVE_TE_AND_MEGATRON_CORE = True -except (ImportError, ModuleNotFoundError): +except (ImportError, ModuleNotFoundError, Exception): HAVE_TE_AND_MEGATRON_CORE = False from typing import Any