Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
PickledChair committed May 13, 2022
1 parent 14b16ee commit a910098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion voicevox_engine/synthesis_engine/core_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ def check_core_type(core_dir: Path) -> Optional[str]:
def load_core(core_dir: Path, use_gpu: bool) -> CDLL:
if is_version_0_12_core_or_later(core_dir):
try:
return CDLL(str((core_dir / CORENAME_DICT[platform.system()]).resolve(strict=True)))
return CDLL(
str((core_dir / CORENAME_DICT[platform.system()]).resolve(strict=True))
)
except OSError as err:
raise RuntimeError(f"コアの読み込みに失敗しました:{err}")

Expand Down

0 comments on commit a910098

Please sign in to comment.