1
dbow 2014 年 5 月 25 日
不懂torndb,只是Duplicate entry看起来是IntergrityError的一种,如果想只针对Duplicate entry可以用
try: .... except IntergrityError as e: if 1062 not in e.args: raise e //your code |