History

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

Paul Brossier committed 17 years ago

Commit 634d2381 parent 5f23f661 file · +2 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/aubio/aubioclass.py+2−1
@@ -42,7 +42,8 @@ class sndfile: · 41 unmodified lines
42 self.file = new_aubio_sndfile_wo(model.file,filename)42 self.file = new_aubio_sndfile_wo(model.file,filename)
43 else:43 else:
44 self.file = new_aubio_sndfile_ro(filename)44 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)
46 def __del__(self):47 def __del__(self):
47 if self.file != None: del_aubio_sndfile(self.file)48 if self.file != None: del_aubio_sndfile(self.file)
48 def info(self):49 def info(self):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t