{"provider_url":"https://hatena.blog","description":"traceback.format_exc\u547c\u3079\u3070\u3044\u3044\u3060\u3051\u306a\u3093\u3060\u3051\u3069\u3088\u304f\u5fd8\u308c\u308b\u306e\u3067\u30e1\u30e2 import logging import traceback try: def a(): b() def b(): open('./not_exist.txt') a() except Exception, e: logging.error(traceback.format_exc()) raise \u51fa\u529b ERROR:root:Traceback (most recent call last): File \"/Users/yuhei/workspace/sandbox/stacktrace_demo.py\",\u2026","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","author_name":"yuheiomori0718","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20120726%2F1343306482\" title=\"Python\u3067stacktrace\u306e\u30ed\u30b0\u51fa\u529b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2012-07-26 21:41:22","blog_url":"https://y0m0r.hateblo.jp/","width":"100%","image_url":null,"provider_name":"Hatena Blog","type":"rich","categories":["python"],"title":"Python\u3067stacktrace\u306e\u30ed\u30b0\u51fa\u529b","version":"1.0","url":"https://y0m0r.hateblo.jp/entry/20120726/1343306482"}