Commit 5231c472 authored by Łukasz Nowak's avatar Łukasz Nowak

Do not fail in case of no previous id.

parent f8c818db
...@@ -64,7 +64,8 @@ service = portal.portal_secure_payments.find()\n ...@@ -64,7 +64,8 @@ service = portal.portal_secure_payments.find()\n
\n \n
previous_id = transaction.PaymentTransaction_getPreviousPayzenId()\n previous_id = transaction.PaymentTransaction_getPreviousPayzenId()\n
if previous_id is None:\n if previous_id is None:\n
raise ValueError(\'No previous id found\')\n payzen_event.confirm(comment=\'No previous id found\')\n
return\n
\n \n
previous_date, previous_id = previous_id.split(\'_\')\n previous_date, previous_id = previous_id.split(\'_\')\n
today = DateTime().toZone(\'UTC\').asdatetime().strftime(\'%Y%m%d\')\n today = DateTime().toZone(\'UTC\').asdatetime().strftime(\'%Y%m%d\')\n
......
60 61
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment