# 각 뉴스마다 try catch 적용을 위한 데코레이터
def try_catch(func):
def wrapper(self):
try:
return func(self)
except Exception as e:
logger.error(e)
capture_exception(e)
return wrapper
@GetNewsContent.try_catch
def sitemap_start(self):
...