chore: Hide all warnings in bench console
This commit is contained in:
parent
e54b1d5835
commit
e18f080453
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue