ref: 634d2382f928d185159fe61a73d53c26e11530ff
parent: 5f23f66050fc20497638ca99af3820ef05ddc6df
author: Paul Brossier <piem@piem.org>
date: Fri Sep 25 21:55:27 EDT 2009
python/aubio/aubioclass.py: print filename of file that failed opening
--- a/python/aubio/aubioclass.py
+++ b/python/aubio/aubioclass.py
@@ -42,7 +42,8 @@
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):