From 215dae7424c98292e17607db2bb08b0935ee5cfe Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 19 Aug 2016 20:39:05 +0200 Subject: test + fix errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcoopgamma.py') diff --git a/src/libcoopgamma.py b/src/libcoopgamma.py index 7d561db..549d2b9 100644 --- a/src/libcoopgamma.py +++ b/src/libcoopgamma.py @@ -1004,10 +1004,10 @@ class Context: @param async:AsyncContext Slot for information about the request that is needed to identify and parse the response ''' - (successful, value) = libcoopgamma_native.libcoopgamma_native_get_gamma_send( + error = libcoopgamma_native.libcoopgamma_native_get_gamma_send( query, self.address, async.address) - if not successful: - raise ErrorReport.create_error(value) + if error != 0: + raise ErrorReport.create_error(error) def get_gamma_recv(self, async): ''' -- cgit v1.2.3-70-g09d2