joshuarauh commited on
Commit
9223a59
·
verified ·
1 Parent(s): d04b940

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -531,6 +531,10 @@ STRICT REQUIREMENTS:
531
 
532
  return response_text, questions_path, full_path
533
 
 
 
 
 
534
  def extract_and_run_sympy_code_simple(response_text):
535
  """
536
  Extract SymPy code from the response and execute it.
 
531
 
532
  return response_text, questions_path, full_path
533
 
534
+ except Exception as e:
535
+ logger.error(f"Error generating question: {str(e)}")
536
+ return f"Error: {str(e)}", None, None
537
+
538
  def extract_and_run_sympy_code_simple(response_text):
539
  """
540
  Extract SymPy code from the response and execute it.