Add exception handling for unsuccessful api fetch