Skip to content

Commit 7556f8d

Browse files
committedAug 25, 2024
[contacts.ContactGroup.repframes] use fstring
1 parent 05522e7 commit 7556f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mdciao/contacts/contacts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6378,7 +6378,7 @@ def repframes(self, scheme="mode",
63786378
if _path.exists(reptraj):
63796379
geoms.append(_md.load(reptraj, top=self.top,frame=frame_idx))
63806380
else:
6381-
raise FileNotFoundError("The file %s can't be found anymore. Is this an `mdciao.examples` object?"%reptraj)
6381+
raise FileNotFoundError(f"The file '{reptraj}' can't be found anymore. Is this an `mdciao.examples` object?")
63826382
else:
63836383
geoms.append(reptraj[frame_idx])
63846384
return_tuple += tuple([geoms])

0 commit comments

Comments
 (0)