Change error handling since can't call HTTPError.read() twice
Change error handling since can't call HTTPError.read() twice

Also some minor checking on the url
olsonanl/typecomp,kbase/typecomp,olsonanl/typecomp,olsonanl/typecomp,kbase/typecomp,kbase/typecomp,olsonanl/typecomp