ソースを参照

[minor] fixes for unbound local variable issue

version-14
mbauskar 8年前
コミット
b6ba17b33b
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      frappe/commands/site.py

+ 2
- 1
frappe/commands/site.py ファイルの表示

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


make_site_dirs() make_site_dirs()


installing = None
try: try:
installing = touch_file(get_site_path('locks', 'installing.lock')) 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, "***" print "*** Scheduler is", scheduler_status, "***"


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


frappe.destroy() frappe.destroy()


読み込み中…
キャンセル
保存