瀏覽代碼

chore: Hide all warnings in bench console

version-14
Gavin D'souza 4 年之前
父節點
當前提交
e18f080453
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      frappe/commands/utils.py

+ 3
- 0
frappe/commands/utils.py 查看文件

@@ -488,6 +488,8 @@ frappe.db.connect()
@pass_context
def console(context):
"Start ipython console for a site"
import warnings

site = get_site(context)
frappe.init(site=site)
frappe.connect()
@@ -508,6 +510,7 @@ def console(context):
if failed_to_import:
print("\nFailed to import:\n{}".format(", ".join(failed_to_import)))

warnings.simplefilter('ignore')
IPython.embed(display_banner="", header="", colors="neutral")




Loading…
取消
儲存