1
dbow 2014-05-25 19:44:27 +08:00
不懂torndb,只是Duplicate entry看起来是IntergrityError的一种,如果想只针对Duplicate entry可以用
try: .... except IntergrityError as e: if 1062 not in e.args: raise e //your code |