fix: request returns 5 elements instead of 3

This commit is contained in:
Mathieu Comandon 2012-06-13 14:14:52 +02:00
parent 7c76f2b121
commit fb9e19d11d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class Payment(PaymentCommon):
self.logger.debug('executing %s' % args)
result, _ = subprocess.Popen(args, executable=executable,
stdout=subprocess.PIPE, shell=True).communicate()
result = result.split('!')
result = result.strip('!').split('!')
self.logger.debug('got response %s' % result)
return result