Skip to content

Commit 83e7eea

Browse files
authored
Remove exception printing when importing phonopy (#3696)
1 parent 48af038 commit 83e7eea

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pymatgen/phonon/gruneisen.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
try:
2020
import phonopy
2121
from phonopy.phonon.dos import TotalDos
22-
except ImportError as exc:
23-
print(exc)
22+
except ImportError:
2423
phonopy = None
2524

2625
if TYPE_CHECKING:

pymatgen/phonon/thermal_displacements.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222

2323
try:
2424
import phonopy
25-
except ImportError as exc:
26-
print(exc)
25+
except ImportError:
2726
phonopy = None
2827

2928
__author__ = "J. George"

0 commit comments

Comments
 (0)