Fixing error outputting so as not to cause a stacktrace/additional errors

Anytime the request fails right now I end up with a stack trace and an "index must be int not str" error.  This seems to  correct the error and properly prints out the real error message without having to access `["reason"]` directly.