Skip to content

Commit 271dd46

Browse files
committed
Fix errors in exception message
1 parent 43bf09a commit 271dd46

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

caelus/run/core.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,10 @@ def clone_case(
210210
absdir = osutils.abspath(casedir)
211211
tmpl_dir = osutils.abspath(template_dir)
212212
if os.path.exists(absdir):
213-
raise IOError("Cannot overwrite existing file/directory: %s", absdir)
213+
raise IOError(f"Cannot overwrite existing file/directory: {absdir}")
214214
if not (os.path.exists(tmpl_dir) and is_caelus_casedir(tmpl_dir)):
215215
raise IOError(
216-
"Invalid Caelus case directory provided as template: %s",
217-
template_dir,
216+
"Invalid Caelus case directory provided as template: {template_dir}"
218217
)
219218

220219
default_ignore = [
@@ -250,7 +249,5 @@ def clone_case(
250249

251250
def get_mpi_size(casedir):
252251
"""Determine the number of MPI ranks to run"""
253-
# TODO: Implement decomposeParDict options. How do we handle
254-
# redistributePar?
255252
with osutils.set_work_dir(casedir):
256253
return len(glob.glob("processor*"))

0 commit comments

Comments
 (0)