old style exception, raise --> new style for Python 3 (#10082)

* old style raise --> raise() for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style exception --> new style for Python 3

* old style raise --> raise() for Python 3

* old style raise --> raise() for Python 3

* old style exception, raise --> new style for Python 3
This commit is contained in:
cclauss
2017-07-27 07:08:35 +02:00
committed by Rushabh Mehta
parent c67bf5026e
commit 6848708377
13 changed files with 18 additions and 18 deletions

View File

@@ -78,7 +78,7 @@ def execute():
def insert_or_update(account):
try:
account.insert()
except frappe.NameError, e:
except frappe.NameError as e:
if e.args[0]=="Email Account":
existing_account = frappe.get_doc("Email Account", e.args[1])
for key, value in account.as_dict().items():