Commit 6972f666 authored by Vincent Pelletier's avatar Vincent Pelletier

Make error message more helpful when organisation has no title.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30453 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8d12d6c
......@@ -60,7 +60,7 @@ organisation = context.organisation_module[orga_id]\n
\n
account_list = [x for x in organisation.objectValues(portal_type=\'Bank Account\') if x.getValidationState() == \'valid\']\n
if len(account_list)!=1:\n
raise ValueError, \'Must not get %d account for the organisation %s\' %(len(account_list),organisation.getTitle())\n
raise ValueError, \'Must not get %d account for the organisation %s\' % (len(account_list), organisation.getTitleOrId())\n
return account_list[0]\n
</string> </value>
</item>
......
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