fruitpicker01 commited on
Commit
742c8b8
verified
1 Parent(s): f8d1f68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2609,9 +2609,9 @@ def check_product_name_consistency(message, description):
2609
  # 肖校袧袣笑袠袠 袩袪袨袙袝袪袨袣 (袣袨袧袝笑)
2610
 
2611
 
2612
- def safe_check(func, message):
2613
  try:
2614
- return func(message)
2615
  except Exception as e:
2616
  # Optionally, you can log the exception here if needed
2617
  return None # Indicate that the check could not be performed
 
2609
  # 肖校袧袣笑袠袠 袩袪袨袙袝袪袨袣 (袣袨袧袝笑)
2610
 
2611
 
2612
+ def safe_check(func, *args):
2613
  try:
2614
+ return func(*args)
2615
  except Exception as e:
2616
  # Optionally, you can log the exception here if needed
2617
  return None # Indicate that the check could not be performed