Mercurial > touhou
diff pytouhou/ui/music.py @ 377:70e2ed71b09c
Add meaningful exceptions in format parsing.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 29 Aug 2012 18:34:28 +0200 |
parents | f305cdd6f6c5 |
children | e0e284fcb288 |
line wrap: on
line diff
--- a/pytouhou/ui/music.py +++ b/pytouhou/ui/music.py @@ -32,7 +32,7 @@ class InfiniteWaveSource(WaveSource): self._end = self.audio_format.bytes_per_sample * end if self._end > self._max_offset: - raise Exception #TODO + raise Exception('Music ends after the end of the file.') self._duration = None