diff --git a/abipy/flowtk/abitimer.py b/abipy/flowtk/abitimer.py index 3cdf50448..b79d5520b 100644 --- a/abipy/flowtk/abitimer.py +++ b/abipy/flowtk/abitimer.py @@ -1,3 +1,9 @@ # flake8: noqa -#from pymatgen.io.abinit.abitimer import AbinitTimerParserError, AbinitTimerParser, AbinitTimerSection -from pymatgen.io.abinit.abitimer import AbinitTimerParseError, AbinitTimerParser, AbinitTimerSection +from pymatgen.core import __version__ as pmg_version +from pymatgen.io.abinit.abitimer import AbinitTimerParser, AbinitTimerSection + + +if pmg_version < '2023.7.10': + from pymatgen.io.abinit.abitimer import AbinitTimerParserError as AbinitTimerParseError +else: + from pymatgen.io.abinit.abitimer import AbinitTimerParseError