Added try-except for some exceptions
Maybe fixed HTTPError exception