tracebackというモジュールを使う
import traceback
try:
hoge()
except:
print traceback.format_exc()
Go to list of users who liked
More than 5 years have passed since last update.
tracebackというモジュールを使う
import traceback
try:
hoge()
except:
print traceback.format_exc()
Register as a new user and use Qiita more conveniently
Go to list of users who liked