It's been a long time since I took an interest, but I recall the Pope being the representitive of God and as such being infallible when acting in that role. There was never any suggestion that he was in effect, a vice-deity, that I recall.
I could be wrong, but that's my recollection.