From: Andy T. <an...@us...> - 2005-09-18 03:59:38
|
Update of /cvsroot/pythoncard/PythonCard/samples/sounds In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9735/samples/sounds Modified Files: sounds.py Log Message: Making blanket except clauses more specific Index: sounds.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/sounds/sounds.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** sounds.py 12 Aug 2004 19:19:01 -0000 1.14 --- sounds.py 18 Sep 2005 03:59:22 -0000 1.15 *************** *** 18,22 **** snd = sound.Sound(filename) snd.play(async, loop) ! except: base = os.path.basename(filename) dialog.alertDialog(self, 'The sound file "%s" is not in a format I can understand.' % base, 'Unknown File Type') --- 18,22 ---- snd = sound.Sound(filename) snd.play(async, loop) ! except sound.SoundFileError: base = os.path.basename(filename) dialog.alertDialog(self, 'The sound file "%s" is not in a format I can understand.' % base, 'Unknown File Type') |