From: Paul Brossier Date: Fri, 25 Sep 2009 23:55:27 +0000 (+0200) Subject: python/aubio/aubioclass.py: print filename of file that failed opening X-Git-Tag: bzr2git~285 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=634d2382f928d185159fe61a73d53c26e11530ff;p=aubio.git python/aubio/aubioclass.py: print filename of file that failed opening --- 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):