[minor] replace 'raise e' with 'raise' for correct tracebacks

This commit is contained in:
Anand Doshi
2013-11-12 17:28:17 +05:30
parent 4f642e7670
commit 5f73a980b5
9 changed files with 12 additions and 12 deletions

View File

@@ -10,6 +10,6 @@ def execute():
webnotes.conn.sql("""alter table `tabStock Ledger Entry` add index posting_sort_index(posting_date, posting_time, name)""")
webnotes.conn.commit()
except Exception, e:
if e.args[0]!=1061: raise e
if e.args[0]!=1061: raise
webnotes.conn.begin()