Changeset 634d238 for python


Ignore:
Timestamp:
Sep 26, 2009, 1:55:27 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
9e0dd58
Parents:
5f23f66
Message:

python/aubio/aubioclass.py: print filename of file that failed opening

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    r5f23f66 r634d238  
    4343        else:
    4444            self.file = new_aubio_sndfile_ro(filename)
    45         if self.file == None: raise(ValueError, "failed opening file")
     45        if self.file == None:
     46            raise(ValueError, "failed opening file %s" % filename)
    4647    def __del__(self):
    4748        if self.file != None: del_aubio_sndfile(self.file)
Note: See TracChangeset for help on using the changeset viewer.