This commit is contained in:
9700X_PC 2025-07-14 08:34:37 +09:00
parent 32f9f27330
commit f0beaf1a87
1 changed files with 3 additions and 3 deletions

View File

@ -1026,15 +1026,15 @@ class TitleGenerator:
str: 원본 상품명 텍스트
"""
try:
self.logger.log("원본 수집상품명을 가져오는 중입니다.", level=logging.DEBUG)
self.logger.log("수집상품명을 가져오는 중입니다.", level=logging.DEBUG)
elements = await self.page.query_selector_all(self.collection_product_name_locator)
first_element = elements[0]
collection_name = await first_element.input_value() if first_element else ""
self.logger.log(f"원본 수집상품명: {collection_name}", level=logging.DEBUG)
self.logger.log(f"수집상품명: {collection_name}", level=logging.DEBUG)
return collection_name
except Exception as e:
self.logger.log(f"원본 수집상품명 가져오기 중 오류 발생: {e}", level=logging.ERROR, exc_info=True)
self.logger.log(f"수집상품명 가져오기 중 오류 발생: {e}", level=logging.ERROR, exc_info=True)
return ""