From 8eff6b64c6a8542ccc8a809c6d47887490dd9fe8 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 8 Feb 2013 19:26:01 +0530 Subject: [PATCH] fix in syntax --- webnotes/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/db.py b/webnotes/db.py index 6aeefc6a02..9c3ca5b1f6 100644 --- a/webnotes/db.py +++ b/webnotes/db.py @@ -76,7 +76,7 @@ class Database: cmd = q.strip().lower().split()[0] if cmd in ['alter', 'drop', 'truncate'] and webnotes.user.name != 'Administrator': webnotes.msgprint('Not allowed to execute query') - raise Execption + raise Exception def sql(self, query, values=(), as_dict = 0, as_list = 0, formatted = 0, debug=0, ignore_ddl=0, as_utf8=0, auto_commit=0, update=None):