Spaces:
Running
Running
typo
Browse files- validation.py +2 -2
validation.py
CHANGED
@@ -49,7 +49,7 @@ def validate_records(json_data):
|
|
49 |
_ = func_timeout.func_timeout(WAIT_TIME, lambda: next(iter(records)))
|
50 |
results.append(f"β
Record set '{record_set.uuid}' passed validation.")
|
51 |
except func_timeout.exceptions.FunctionTimedOut:
|
52 |
-
error_message = f"β Record set '{record_set.uuid}' generation took too long (>
|
53 |
return False, error_message
|
54 |
except Exception as e:
|
55 |
error_details = traceback.format_exc()
|
@@ -59,5 +59,5 @@ def validate_records(json_data):
|
|
59 |
return True, "\n".join(results)
|
60 |
except Exception as e:
|
61 |
error_details = traceback.format_exc()
|
62 |
-
error_message = f"β Unexpected
|
63 |
return False, error_message
|
|
|
49 |
_ = func_timeout.func_timeout(WAIT_TIME, lambda: next(iter(records)))
|
50 |
results.append(f"β
Record set '{record_set.uuid}' passed validation.")
|
51 |
except func_timeout.exceptions.FunctionTimedOut:
|
52 |
+
error_message = f"β Record set '{record_set.uuid}' generation took too long (>300s)"
|
53 |
return False, error_message
|
54 |
except Exception as e:
|
55 |
error_details = traceback.format_exc()
|
|
|
59 |
return True, "\n".join(results)
|
60 |
except Exception as e:
|
61 |
error_details = traceback.format_exc()
|
62 |
+
error_message = f"β Unexpected errors during records validation: {str(e)}\n\n{error_details}"
|
63 |
return False, error_message
|