whispersound commited on
Commit
c1f7b85
·
verified ·
1 Parent(s): d72cac0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -203,8 +203,13 @@ def generate_blog_post(category, style, references1, references2, references3, t
203
 
204
  # HTML로 변환
205
  html_post = convert_to_html(filtered_post)
206
-
207
  return html_post
 
 
 
 
 
208
 
209
  def convert_to_html(text):
210
  soup = BeautifulSoup('<div class="blog-post"></div>', 'html.parser')
 
203
 
204
  # HTML로 변환
205
  html_post = convert_to_html(filtered_post)
206
+
207
  return html_post
208
+ except Exception as e:
209
+ print(f"블로그 포스트 생성 중 오류 발생: {str(e)}")
210
+ import traceback
211
+ traceback.print_exc()
212
+ return ""
213
 
214
  def convert_to_html(text):
215
  soup = BeautifulSoup('<div class="blog-post"></div>', 'html.parser')