Skip to content

Commit 1ba98a9

Browse files
Nathaniel CorleyNathaniel Corley
authored andcommitted
fix: PDB_MIRROR variable error catching
1 parent e40c5c2 commit 1ba98a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modelhub/utils/datasets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
FallbackDatasetWrapper,
3131
get_row_and_index_by_example_id,
3232
)
33-
except (ImportError, ModuleNotFoundError):
33+
except Exception as e:
3434
ranked_logger.warning(
35-
"Failed to import atomworks.ml.datasets.datasets. "
35+
f"Failed to import atomworks.ml.datasets.datasets: {type(e).__name__}: {e}. "
3636
"If training networks, the PDB_MIRROR environment variable must be set."
3737
)
3838

0 commit comments

Comments
 (0)