Skip to content

Commit

Permalink
Merge pull request #26 from homenoc/develop
Browse files Browse the repository at this point in the history
[fix] Fixed error log.
  • Loading branch information
yoneyan authored Aug 14, 2023
2 parents 79348e4 + 63d26bd commit 2bbbb1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jpnic_admin/resource/task.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import copy
import datetime
import inspect
import os
import re
import sys
import time
import traceback

from bs4 import BeautifulSoup
from django.conf import settings
Expand Down Expand Up @@ -75,7 +74,7 @@ def exec_task(type1, base, log, now):
exc = sys.exception()
fail = {
"type": str(type(e)),
"message": "[%s] %s" % (str(e), str(inspect.getframeinfo(exc.__traceback__.tb_frame)))
"message": "[%s] %s" % (str(e), repr(traceback.format_tb(exc.__traceback__)))
}
update_task_log(type1, base, log, now, fail)

Expand Down

0 comments on commit 2bbbb1b

Please sign in to comment.