aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcoopgamma.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-19 20:39:05 +0200
committerMattias Andrée <maandree@kth.se>2016-08-19 20:39:05 +0200
commit215dae7424c98292e17607db2bb08b0935ee5cfe (patch)
treec94b732b961ba438e717b0a955d97d6abd7afc4c /src/libcoopgamma.py
parentwork on test + fix errors (diff)
downloadpylibcoopgamma-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.py6
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):
'''