sinacloud/sae-python-dev-guide — pull request #99 by smallcode (2014-03-20 12:49:05+00:00)
Title: Fix TypeError: not enough arguments for format string

使用South进行数据迁移，会出现如下异常：

> 段落引用
Error in migration: taobao:0001_initial
Traceback (most recent call last):
File "D:\Interpreters\Python273\lib\site-packages\sae\_restful_mysql\cursors.py", line 164, in execute
query = query % db.literal(args)
TypeError: not enough arguments for format string

调试了很久都没法解决。最后将异常所在的execute方法，替换为最新版的MySQLdb中的execute方法，就不会出现异常了。