virStream.sendAll() fix raising an undeclared var
virStream.sendAll() fix raising an undeclared var

The exception is raised from the variable 'e', which was undeclared in
this context. Used code that is compatible with old and new Python
versions.

libvirt/libvirt-python,libvirt/libvirt-python,libvirt/libvirt-python