From 634d2382f928d185159fe61a73d53c26e11530ff Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 26 Sep 2009 01:55:27 +0200 Subject: [PATCH] python/aubio/aubioclass.py: print filename of file that failed opening --- python/aubio/aubioclass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/aubio/aubioclass.py b/python/aubio/aubioclass.py index 84ab9ae1..c2c221ea 100644 --- a/python/aubio/aubioclass.py +++ b/python/aubio/aubioclass.py @@ -42,7 +42,8 @@ class sndfile: self.file = new_aubio_sndfile_wo(model.file,filename) else: self.file = new_aubio_sndfile_ro(filename) - if self.file == None: raise(ValueError, "failed opening file") + if self.file == None: + raise(ValueError, "failed opening file %s" % filename) def __del__(self): if self.file != None: del_aubio_sndfile(self.file) def info(self): -- 2.26.2