added 'raise' in 'except' part