ciyidogan commited on
Commit
77a65dc
·
verified ·
1 Parent(s): ef6b8f7

Update admin_routes.py

Browse files
Files changed (1) hide show
  1. 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,