import sys
try:
print("try")
except Exception as e:
print("Error on line {}".format(sys.exc_info()[-1].tb_lineno))
print(e)
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme