From 18485a9269a87bf3cdfe9f6670fb0d7338aafb2c Mon Sep 17 00:00:00 2001 From: htgoebel Date: Sat, 22 Jan 2005 11:29:44 +0000 Subject: [PATCH] Return codes of fax.sendfax() hade wrong order in case of capi.call_faxG3() failed. Fixed. git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@420 4ebea2bb-67d4-0310-8558-a5799e421b66 --- src/capisuite-py/fax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capisuite-py/fax.py b/src/capisuite-py/fax.py index 49d550b..a7a84cd 100644 --- a/src/capisuite-py/fax.py +++ b/src/capisuite-py/fax.py @@ -252,7 +252,7 @@ def sendfax(config, user, capi, faxfile, core.log('result from capi.call_faxG3: %s' % result, 2) if result: # an errror occured - return 0, result # todo: maybe use another physical reason? + return result, 0 call.fax_send(faxfile) return call.disconnect() except core.CallGoneError: