From e47874daa03b28e04a6f5b4328e7699f77830c05 Mon Sep 17 00:00:00 2001 From: Johan Pauwels Date: Thu, 1 Dec 2016 22:20:45 +0000 Subject: [PATCH] Fix string formatting error Throws "TypeError: not all arguments converted during string formatting" because format string is invalid. --- audiolab/pysndfile/_sndfile.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiolab/pysndfile/_sndfile.pyx b/audiolab/pysndfile/_sndfile.pyx index 48df0e9..325d8a4 100644 --- a/audiolab/pysndfile/_sndfile.pyx +++ b/audiolab/pysndfile/_sndfile.pyx @@ -741,7 +741,7 @@ broken)""" elif input.dtype == np.short: res = self.write_frames_short(input, nframes) else: - raise Exception("type of input &s not understood" % str(input.dtype)) + raise Exception("type of input %s not understood" % str(input.dtype)) if not(res == nframes): raise IOError("write %d frames, expected to write %d"