From 9fe7ccca6eea685c60c338dee11ca4e69f8db349 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Mon, 12 Dec 2016 21:49:00 +0300 Subject: [PATCH] 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 Acked-by: Andrei Vagin --- lib/py/criu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/py/criu.py b/lib/py/criu.py index 0ae204af9..87257580e 100644 --- a/lib/py/criu.py +++ b/lib/py/criu.py @@ -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