Skip to content

Commit da5a121

Browse files
committed
remove f string
1 parent f4e5132 commit da5a121

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

cime_config/buildlib

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,24 +287,24 @@ def _build_musica(clone_dest: str) -> str:
287287
subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
288288
text=True, check=False)
289289
except subprocess.CalledProcessError as e:
290-
raise subprocess.CalledProcessError(f"The subprocess for cmake \
290+
raise subprocess.CalledProcessError("The subprocess for cmake \
291291
to configure the MUSICA CMake project failed.") from e
292292
except FileNotFoundError as e:
293-
raise FileNotFoundError(f"The 'cmake' command was not found.") from e
293+
raise FileNotFoundError("The 'cmake' command was not found.") from e
294294
except OSError as e:
295-
raise OSError(f"An error occurred while executing the 'cmake' command.") from e
295+
raise OSError("An error occurred while executing the 'cmake' command.") from e
296296

297297
command = ["cmake", "--build", ".", "--target", "install"]
298298
try:
299299
subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
300300
text=True, check=False)
301301
except subprocess.CalledProcessError as e:
302-
raise subprocess.CalledProcessError(f"The subprocess for cmake \
302+
raise subprocess.CalledProcessError("The subprocess for cmake \
303303
to build the MUSICA library failed.") from e
304304
except FileNotFoundError as e:
305-
raise FileNotFoundError(f"The 'cmake' command was not found.") from e
305+
raise FileNotFoundError("The 'cmake' command was not found.") from e
306306
except OSError as e:
307-
raise OSError(f"An error occurred while executing the 'cmake' command.") from e
307+
raise OSError("An error occurred while executing the 'cmake' command.") from e
308308

309309
os.chdir(current_dir)
310310
musica_install_path = os.path.join(bld_path, install_dir)
@@ -341,7 +341,7 @@ def _download_musica_configuration(download_dest: str) -> None:
341341
except PermissionError as e:
342342
raise PermissionError(f"Permission denied to rename '{original_dir}'.") from e
343343
except OSError as e:
344-
raise OSError(f"An error occurred while renaming.") from e
344+
raise OSError("An error occurred while renaming.") from e
345345

346346
musica_config_path = os.path.join(download_dest, musica_config_dir_name)
347347
if os.path.exists(musica_config_path):
@@ -379,12 +379,12 @@ def _set_musica_lib_path(musica_install_path: str, caseroot: str) -> None:
379379
subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
380380
text=True, check=False)
381381
except subprocess.CalledProcessError as e:
382-
raise subprocess.CalledProcessError(f"The subprocess for xmlchange \
382+
raise subprocess.CalledProcessError("The subprocess for xmlchange \
383383
to set the MUSICA library path failed.") from e
384384
except FileNotFoundError as e:
385-
raise FileNotFoundError(f"The 'xmlchange' command was not found.") from e
385+
raise FileNotFoundError("The 'xmlchange' command was not found.") from e
386386
except OSError as e:
387-
raise OSError(f"An error occurred while executing the 'xmlchange' command.") from e
387+
raise OSError("An error occurred while executing the 'xmlchange' command.") from e
388388

389389
os.chdir(current_dir)
390390

@@ -416,9 +416,9 @@ def _clone_and_checkout(repo_url: str, tag_name: str, clone_dest: str) -> None:
416416
raise subprocess.CalledProcessError(f"The subprocess for git \
417417
to clone the repository {repo_url} failed.") from e
418418
except FileNotFoundError as e:
419-
raise FileNotFoundError(f"The 'git' command was not found.") from e
419+
raise FileNotFoundError("The 'git' command was not found.") from e
420420
except OSError as e:
421-
raise OSError(f"An error occurred while executing the 'git' command.") from e
421+
raise OSError("An error occurred while executing the 'git' command.") from e
422422

423423
try:
424424
subprocess.run(["git", "-C", repo_path, "checkout", tag_name],
@@ -427,9 +427,9 @@ def _clone_and_checkout(repo_url: str, tag_name: str, clone_dest: str) -> None:
427427
raise subprocess.CalledProcessError(f"The subprocess for git \
428428
to checkout the branch {tag_name} failed.") from e
429429
except FileNotFoundError as e:
430-
raise FileNotFoundError(f"The 'git' command was not found.") from e
430+
raise FileNotFoundError("The 'git' command was not found.") from e
431431
except OSError as e:
432-
raise OSError(f"An error occurred while executing the 'git' command.") from e
432+
raise OSError("An error occurred while executing the 'git' command.") from e
433433

434434
###############################################################################
435435

0 commit comments

Comments
 (0)