Spaces:
Running
Running
Update admin_routes.py
Browse files- admin_routes.py +3 -0
admin_routes.py
CHANGED
@@ -958,6 +958,9 @@ async def validate_regex(
|
|
958 |
"pattern": pattern,
|
959 |
"test_value": test_value
|
960 |
}
|
|
|
|
|
|
|
961 |
except Exception as e:
|
962 |
return {
|
963 |
"valid": False,
|
|
|
958 |
"pattern": pattern,
|
959 |
"test_value": test_value
|
960 |
}
|
961 |
+
except DuplicateResourceError as e:
|
962 |
+
# Let the exception handler deal with it
|
963 |
+
raise
|
964 |
except Exception as e:
|
965 |
return {
|
966 |
"valid": False,
|