Skip to content

Commit

Permalink
Merge c917c91 into 718c89e
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan authored May 29, 2024
2 parents 718c89e + c917c91 commit d8e8504
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions voicevox_engine/app/routers/speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import base64
import json
import traceback
from pathlib import Path
from typing import Annotated, Literal

Expand Down Expand Up @@ -127,7 +126,6 @@ def _speaker_info(
}
)
except FileNotFoundError:
traceback.print_exc()
msg = "追加情報が見つかりませんでした"
raise HTTPException(status_code=500, detail=msg)

Expand Down
6 changes: 0 additions & 6 deletions voicevox_engine/app/routers/user_dict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""ユーザー辞書機能を提供する API Router"""

import traceback
from typing import Annotated

from fastapi import APIRouter, Body, Depends, HTTPException, Path, Query
Expand Down Expand Up @@ -31,7 +30,6 @@ def get_user_dict_words() -> dict[str, UserDictWord]:
except UserDictInputError as err:
raise HTTPException(status_code=422, detail=str(err))
except Exception:
traceback.print_exc()
raise HTTPException(
status_code=500, detail="辞書の読み込みに失敗しました。"
)
Expand Down Expand Up @@ -77,7 +75,6 @@ def add_user_dict_word(
except UserDictInputError as err:
raise HTTPException(status_code=422, detail=str(err))
except Exception:
traceback.print_exc()
raise HTTPException(
status_code=500, detail="ユーザー辞書への追加に失敗しました。"
)
Expand Down Expand Up @@ -128,7 +125,6 @@ def rewrite_user_dict_word(
except UserDictInputError as err:
raise HTTPException(status_code=422, detail=str(err))
except Exception:
traceback.print_exc()
raise HTTPException(
status_code=500, detail="ユーザー辞書の更新に失敗しました。"
)
Expand All @@ -149,7 +145,6 @@ def delete_user_dict_word(
except UserDictInputError as err:
raise HTTPException(status_code=422, detail=str(err))
except Exception:
traceback.print_exc()
raise HTTPException(
status_code=500, detail="ユーザー辞書の更新に失敗しました。"
)
Expand All @@ -176,7 +171,6 @@ def import_user_dict_words(
except UserDictInputError as err:
raise HTTPException(status_code=422, detail=str(err))
except Exception:
traceback.print_exc()
raise HTTPException(
status_code=500, detail="ユーザー辞書のインポートに失敗しました。"
)
Expand Down
2 changes: 0 additions & 2 deletions voicevox_engine/user_dict/user_dict.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
import sys
import threading
import traceback
from collections.abc import Callable
from pathlib import Path
from typing import Any, Final, TypeVar
Expand Down Expand Up @@ -159,7 +158,6 @@ def _update_dict(

except Exception as e:
print("Error: Failed to update dictionary.", file=sys.stderr)
traceback.print_exc(file=sys.stderr)
raise e

finally:
Expand Down

0 comments on commit d8e8504

Please sign in to comment.