Wrong exception is occured when raising no translatable exception
Merge pull request #9493 from kennyj/fix_wrong_exception

Wrong exception is occured when raising no translatable exception

Closes #8617