diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-19 20:39:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-19 20:39:05 +0200 |
commit | 215dae7424c98292e17607db2bb08b0935ee5cfe (patch) | |
tree | c94b732b961ba438e717b0a955d97d6abd7afc4c /src/libcoopgamma.py | |
parent | work on test + fix errors (diff) | |
download | pylibcoopgamma-215dae7424c98292e17607db2bb08b0935ee5cfe.tar.gz pylibcoopgamma-215dae7424c98292e17607db2bb08b0935ee5cfe.tar.bz2 pylibcoopgamma-215dae7424c98292e17607db2bb08b0935ee5cfe.tar.xz |
test + fix errors
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libcoopgamma.py')
-rw-r--r-- | src/libcoopgamma.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): ''' |