mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
[minor] [fix] plugin patch
This commit is contained in:
@@ -21,8 +21,12 @@ def execute():
|
|||||||
for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script`
|
for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script`
|
||||||
where script_type='Server'"""):
|
where script_type='Server'"""):
|
||||||
if script.strip():
|
if script.strip():
|
||||||
script = indent_using_tabs(script)
|
try:
|
||||||
make_custom_server_script_file(dt, script)
|
script = indent_using_tabs(script)
|
||||||
|
make_custom_server_script_file(dt, script)
|
||||||
|
except IOError, e:
|
||||||
|
if "already exists" not in repr(e):
|
||||||
|
raise
|
||||||
|
|
||||||
def indent_using_tabs(script):
|
def indent_using_tabs(script):
|
||||||
for line in script.split("\n"):
|
for line in script.split("\n"):
|
||||||
|
|||||||
Reference in New Issue
Block a user