Skip to content

Commit

Permalink
ignore the final line in pdt response ' - '
Browse files Browse the repository at this point in the history
  • Loading branch information
mthornhill committed Apr 21, 2009
1 parent 61487f4 commit e455c4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions standard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,10 @@ def _parse_paypal_response(self, paypal_response):
else:
if self.st == 'SUCCESS':
result = True
try:

[k, v] = unquoted_paypal_line.split('=')
paypal_response_dict[k.strip()]=v.strip()
try:
if not unquoted_paypal_line.startswith(' -'):
[k, v] = unquoted_paypal_line.split('=')
paypal_response_dict[k.strip()]=v.strip()
except ValueError, e:
logging.error("comfirm_pay_pal error, %s, %s"%(e, unquoted_paypal_line))
else:
Expand Down

0 comments on commit e455c4c

Please sign in to comment.