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
4242 self.file = new_aubio_sndfile_wo(model.file,filename)
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)
4849 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