Fix an undefined name when catching a ZMQError

This will probably conflict with the PEP8 changes, I'll rebase if they go in first.