Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 16, 2024
1 parent 9499637 commit 8764594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/rvspecfit/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def load_dict_from_hdf5(filename):
Loads the dictionary from an HDF5 file.
"""
if not os.path.exists(filename):
raise RuntimeError('Filename {filename} does not exist')
raise RuntimeError(f'Filename {filename} does not exist')
with h5py.File(filename, 'r') as h5file:
version = h5file.attrs.get('version', None)
if version != CURRENT_VERSION:
Expand Down

0 comments on commit 8764594

Please sign in to comment.