Added a further Error type to an except block