fix exception message in report seachr

when we get to the raise statement, `r` is `None`, so displaying it in the
exception message is useless. `name` is what we want to show.
This commit is contained in:
Alexandre Fayolle 2014-09-30 11:35:05 +02:00
parent 5e248f09c7
commit 20267aa06c
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class ir_actions_report_xml(osv.osv):
else:
raise Exception, "Unhandled report type: %s" % r
else:
raise Exception, "Required report does not exist: %s" % r
raise Exception, "Required report does not exist: %s" % name
return new_report