Fix syntax error

This explains why HTTPErrors weren't being caught properly..