Fix exceptions
Fix exceptions
Use ValidationError instead of Warning