diff --git a/tardis/io/atom_data/util.py b/tardis/io/atom_data/util.py index 82cff49e183..6f200edb4b9 100644 --- a/tardis/io/atom_data/util.py +++ b/tardis/io/atom_data/util.py @@ -35,7 +35,7 @@ def resolve_atom_data_fname(fname): ) return fpath - atom_data_name = fname.replace(".h5", "") + atom_data_name = str(fname).replace(".h5", "") atom_repo_config = get_atomic_repo_config() if atom_data_name in atom_repo_config: raise IOError(