diff --git a/bob/bio/base/tools/scoring.py b/bob/bio/base/tools/scoring.py index 3d5a756c8bb1594d6d7ca4f87730b35dd2e28ba2..b22191fe078e0e216eca55772b0002e1357b934a 100644 --- a/bob/bio/base/tools/scoring.py +++ b/bob/bio/base/tools/scoring.py @@ -43,8 +43,6 @@ def _open_to_read(score_file): if not os.path.exists(score_file): score_file += '.tar.bz2' if not os.path.exists(score_file): - f.close() - os.remove(output) raise IOError("The score file '%s' cannot be found. Aborting!" % score_file) return bob.measure.load.open_file(score_file)