Ver a proveniência

[minor] fixes for unbound local variable issue

version-14
mbauskar há 8 anos
ascendente
cometimento
b6ba17b33b
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      frappe/commands/site.py

+ 2
- 1
frappe/commands/site.py Ver ficheiro

@@ -49,6 +49,7 @@ def _new_site(db_name, site, mariadb_root_username=None, mariadb_root_password=N

make_site_dirs()

installing = None
try:
installing = touch_file(get_site_path('locks', 'installing.lock'))

@@ -66,7 +67,7 @@ def _new_site(db_name, site, mariadb_root_username=None, mariadb_root_password=N
print "*** Scheduler is", scheduler_status, "***"

finally:
if os.path.exists(installing):
if installing and os.path.exists(installing):
os.remove(installing)

frappe.destroy()


Carregando…
Cancelar
Guardar