Added better error handling for both Reddit and YouTube request
functions