[ui cleanup] [minor]

This commit is contained in:
Rushabh Mehta
2013-11-11 18:01:37 +05:30
parent 0d62fe821d
commit 3b9e864dec
3 changed files with 5 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ def execute():
from core.doctype.custom_script.custom_script import make_custom_server_script_file
for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script`
where script_type='Server'"""):
if script.strip():
if script and script.strip():
try:
script = indent_using_tabs(script)
make_custom_server_script_file(dt, script)