[minor] replace 'raise e' with 'raise' for correct tracebacks
diff --git a/patches/april_2013/p05_update_file_data.py b/patches/april_2013/p05_update_file_data.py
index 47d6de9..69edcca 100644
--- a/patches/april_2013/p05_update_file_data.py
+++ b/patches/april_2013/p05_update_file_data.py
@@ -37,7 +37,7 @@
except Exception, e:
print webnotes.getTraceback()
if (e.args and e.args[0]!=1054) or not e.args:
- raise e
+ raise
def update_for_doc(doctype, doc):
for filedata in doc.file_list.split("\n"):
diff --git a/patches/december_2012/file_list_rename.py b/patches/december_2012/file_list_rename.py
index ce4ae76..aff687b 100644
--- a/patches/december_2012/file_list_rename.py
+++ b/patches/december_2012/file_list_rename.py
@@ -10,4 +10,4 @@
webnotes.conn.sql("""update `tab%s` set file_list =
replace(file_list, "-", "")""" % dt[0])
except Exception, e:
- if e.args[0]!=1146: raise e
\ No newline at end of file
+ if e.args[0]!=1146: raise
\ No newline at end of file
diff --git a/patches/january_2013/file_list_rename_returns.py b/patches/january_2013/file_list_rename_returns.py
index 2325da5..bce0c9a 100644
--- a/patches/january_2013/file_list_rename_returns.py
+++ b/patches/january_2013/file_list_rename_returns.py
@@ -37,7 +37,7 @@
except Exception, e:
# if duplicate entry, then dont update
if e[0]!=1062:
- raise e
+ raise
changed_keys = change_map.keys()
@@ -62,5 +62,5 @@
except Exception, e:
if e[0]!=1146:
- raise e
+ raise
\ No newline at end of file
diff --git a/patches/june_2013/p03_buying_selling_for_price_list.py b/patches/june_2013/p03_buying_selling_for_price_list.py
index 61cddd0..58096c5 100644
--- a/patches/june_2013/p03_buying_selling_for_price_list.py
+++ b/patches/june_2013/p03_buying_selling_for_price_list.py
@@ -25,4 +25,4 @@
webnotes.conn.sql("""update `tabPrice List` set buying_or_selling='Selling'
where ifnull(buying_or_selling, '')='' """)
else:
- raise e
\ No newline at end of file
+ raise
\ No newline at end of file
diff --git a/patches/may_2013/p06_make_notes.py b/patches/may_2013/p06_make_notes.py
index 29bfe25..0f98f54 100644
--- a/patches/may_2013/p06_make_notes.py
+++ b/patches/may_2013/p06_make_notes.py
@@ -33,7 +33,7 @@
pass
except Exception, e:
if e.args[0] != 1062:
- raise e
+ raise
webnotes.delete_doc("DocType", "Question")
webnotes.delete_doc("DocType", "Answer")
diff --git a/patches/september_2012/add_stock_ledger_entry_index.py b/patches/september_2012/add_stock_ledger_entry_index.py
index dc3ed96..d272f5a 100644
--- a/patches/september_2012/add_stock_ledger_entry_index.py
+++ b/patches/september_2012/add_stock_ledger_entry_index.py
@@ -10,6 +10,6 @@
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()
\ No newline at end of file
diff --git a/patches/september_2013/p01_update_communication.py b/patches/september_2013/p01_update_communication.py
index 3131738..4b9cac2 100644
--- a/patches/september_2013/p01_update_communication.py
+++ b/patches/september_2013/p01_update_communication.py
@@ -19,4 +19,4 @@
where ifnull(`%s`, '')!=''""" % ("%s", fieldname, fieldname), doctype)
except MySQLdb.OperationalError, e:
if e.args[0] != 1054:
- raise e
+ raise
diff --git a/selling/doctype/quotation/quotation.py b/selling/doctype/quotation/quotation.py
index 5353127..546ff02 100644
--- a/selling/doctype/quotation/quotation.py
+++ b/selling/doctype/quotation/quotation.py
@@ -168,7 +168,7 @@
customer.insert()
return customer
else:
- raise e
+ raise
except webnotes.MandatoryError:
from webnotes.utils import get_url_to_form
webnotes.throw(_("Before proceeding, please create Customer from Lead") + \
diff --git a/setup/doctype/email_settings/email_settings.py b/setup/doctype/email_settings/email_settings.py
index aa511ee..2aa422c 100644
--- a/setup/doctype/email_settings/email_settings.py
+++ b/setup/doctype/email_settings/email_settings.py
@@ -52,7 +52,7 @@
inc_email.password = self.doc.support_password
except AttributeError, e:
webnotes.msgprint(err_msg)
- raise e
+ raise
pop_mb = POP3Mailbox(inc_email)
@@ -61,7 +61,7 @@
except _socket.error, e:
# Invalid mail server -- due to refusing connection
webnotes.msgprint('Invalid POP3 Mail Server. Please rectify and try again.')
- raise e
+ raise
except poplib.error_proto, e:
webnotes.msgprint('Invalid User Name or Support Password. Please rectify and try again.')
- raise e
+ raise