try, except added

try, except added