The upper stack-trace was printed by the traceback module. The lower one would be if we did not catch it.
`traceback.format_exc()` はPythonの`traceback`モジュールの関数の一つで、プログラム中で発生した例外(エラー)のトレースバックを文字列として取得するために使われます。トレースバックは、例外が発生した際にどの行で何が起きたのかを示す情報で、デバッグ ...
(at least in emulated callable functions), No stack trace in the log when an exception occurs, making it difficult to identify the cause.