Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2609,9 +2609,9 @@ def check_product_name_consistency(message, description):
|
|
2609 |
# 肖校袧袣笑袠袠 袩袪袨袙袝袪袨袣 (袣袨袧袝笑)
|
2610 |
|
2611 |
|
2612 |
-
def safe_check(func,
|
2613 |
try:
|
2614 |
-
return func(
|
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
|