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)