Catch decode exception and convert to python exception