Skip to content

Commit 464c135

Browse files
committed
Replaced print(traceback.format_exc()) with traceback.print_exc()
1 parent 6ed6379 commit 464c135

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def run_infer_script(
182182
".wav", f".{export_format.lower()}"
183183
)
184184
except Exception:
185-
print(traceback.format_exc())
185+
traceback.print_exc()
186186
return (
187187
"An error occurred during audio conversion. Check the console for details.",
188188
None,
@@ -319,7 +319,7 @@ def run_batch_infer_script(
319319
infer_pipeline.convert_audio_batch(**kwargs)
320320
return f"Files from {input_folder} inferred successfully."
321321
except Exception:
322-
print(traceback.format_exc())
322+
traceback.print_exc()
323323
return "An error occurred during audio batch conversion. Check the console for details."
324324

325325

0 commit comments

Comments
 (0)