py: Fix resp.errno access

There's no such field in resp, only cr_errno

travis-ci: success for py: Fix resp.errno access
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov 2016-12-12 21:49:00 +03:00
parent 36e43e20fd
commit 9fe7ccca6e

View file

@ -277,6 +277,6 @@ class criu:
resp = self._send_req_and_recv_resp(req)
if not resp.success:
raise CRIUExceptionExternal(req.type, resp.type, resp.errno)
raise CRIUExceptionExternal(req.type, resp.type, resp.cr_errno)
return resp.restore