Commit 67cf8ecb authored by Łukasz Nowak's avatar Łukasz Nowak

Fix raise call argument.

parent 8b56557e
...@@ -78,7 +78,7 @@ possible_previous_id = integration_site.getMappingFromCategory(\'causality/%s\' ...@@ -78,7 +78,7 @@ possible_previous_id = integration_site.getMappingFromCategory(\'causality/%s\'
if possible_previous_id != \'Causality/%s\' % transaction.getRelativeUrl():\n if possible_previous_id != \'Causality/%s\' % transaction.getRelativeUrl():\n
previous_id = possible_previous_id.split(\'/\')[1]\n previous_id = possible_previous_id.split(\'/\')[1]\n
\n \n
if previous_id is None: \n if previous_id is None:\n
raise ValueError(\'Transaction %s had not defined payzen integration\' % previous_transaction.getRelativeUrl())\n raise ValueError(\'Transaction %s had not defined payzen integration\' % previous_transaction.getRelativeUrl())\n
\n \n
previous_date, previous_id = previous_id.split(\'_\')\n previous_date, previous_id = previous_id.split(\'_\')\n
...@@ -98,7 +98,7 @@ except ValueError:\n ...@@ -98,7 +98,7 @@ except ValueError:\n
mapping = integration_site.Causality[mapping_id]\n mapping = integration_site.Causality[mapping_id]\n
mapping.setDestinationReference(\'causality/%s\' % transaction.getRelativeUrl())\n mapping.setDestinationReference(\'causality/%s\' % transaction.getRelativeUrl())\n
else:\n else:\n
raise ValueError(comment=\'Key %s already found!\' % mapping_id)\n raise ValueError(\'Key %s already found.\' % mapping_id)\n
\n \n
# do causality mapping in integration_site between transaction.getRelativeUrl and today + transaction_id\n # do causality mapping in integration_site between transaction.getRelativeUrl and today + transaction_id\n
payzen_dict = {}\n payzen_dict = {}\n
......
49 50
\ 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