From d99f39edaa051da83b504fadeff2d17d730cef73 Mon Sep 17 00:00:00 2001 From: pinky <> Date: Tue, 12 Dec 2006 14:59:39 +0000 Subject: [PATCH] ACCOUNT: Better exceptions in reconcile() in class account_move_line bzr revid: pinky-3b920ed218e4d69de8cf74f1426c95aab7bb3e7f --- addons/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index fcf35064d8f..d15d10142ac 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1110,9 +1110,9 @@ class account_move_line(osv.osv): r = cr.fetchall() #TODO: move this check to a constraint in the account_move_reconcile object if len(r) != 1: - raise 'Entries are not of the same account !' + raise Exception('Entries are not of the same account !') if r[0][1] != None: - raise 'Some entries are already reconciled !' + raise Exception('Some entries are already reconciled !') if writeoff != 0: if not writeoff_acc_id: raise osv.except_osv('Warning', 'You have to provide an account for the write off entry !')