fix in syntax
This commit is contained in:
parent
18bb00afcc
commit
8eff6b64c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue