diff pytouhou/ui/music.pyx @ 616:4ce3ef053a25

Remove every case where an exception could be silently eaten by a cdef function.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Mar 2015 23:21:15 +0100
parents c84227022765
children d18c0bf11138
line wrap: on
line diff
--- a/pytouhou/ui/music.pyx
+++ b/pytouhou/ui/music.pyx
@@ -76,7 +76,7 @@ cdef class SFXPlayer(MusicPlayer):
         self.volume = volume
         self.next_channel = 0
 
-    cdef int get_channel(self, name):
+    cdef int get_channel(self, name) except -1:
         if name not in self.channels:
             self.channels[name] = self.next_channel
             self.next_channel += 1