Added NoSuchNodeError to except in load_and_concat_data

This commit is contained in:
Sebastian Kloth 2023-11-19 12:18:52 +01:00
parent a4c365c4a1
commit ab3d9497d9

View File

@ -4,7 +4,7 @@ from subprocess import run
from typing import Iterable
import pandas as pd
from tables import NoSuchNodeError
@dataclass(kw_only=True)
class MDSystem(abc.ABC):
@ -52,6 +52,6 @@ def load_and_concat_data(systems: Iterable[MDSystem], key: str, verbose: bool =
data.append(system.load_results(key=key))
if verbose:
print(f"Load {system}")
except (FileNotFoundError, KeyError):
except (FileNotFoundError, KeyError, NoSuchNodeError):
continue
return pd.concat(data, ignore_index=True)