From 352339979cb3eb6be2543cadd03cdcc00d128b37 Mon Sep 17 00:00:00 2001 From: "hda@tinyerp.com" <> Date: Wed, 12 Nov 2008 18:35:09 +0530 Subject: [PATCH] Improve error message (ref:sbh) bzr revid: hda@tinyerp.com-20081112130509-ewddg85ivilq5u81 --- bin/tools/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/misc.py b/bin/tools/misc.py index ec4c92d1858..9e4dd3c3cdd 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -247,7 +247,8 @@ def file_open(name, mode="r", subdir='addons', pathinfo=False): if pathinfo: return fo, i return fo - + if os.path.splitext(name)[1] == '.rml': + raise IOError, 'Report %s doesn\'t exist or deleted : ' %str(name) raise IOError, 'File not found : '+str(name)