Exception handling is added for post retrievaling