Skip to content

Commit

Permalink
Update xontribs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored and jnoortheen committed Jan 23, 2023
1 parent a5614a5 commit 1e57bc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xonsh/xontribs.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def xontribs_load(
] = (),
verbose=False,
full_module=False,
skip_missing=False,
silent_missing=False,
):
"""Load xontribs from a list of names
Expand All @@ -214,8 +214,8 @@ def xontribs_load(
verbose output
full_module : -f, --full
indicates that the names are fully qualified module paths and not inside ``xontrib`` package
skip_missing : -s, --skip-missing
skip missing xontribs
silent_missing : -s, --silent-missing
do not show warnings about missing xontribs
"""
ctx = {} if XSH.ctx is None else XSH.ctx
res = ExitCode.OK
Expand All @@ -228,7 +228,7 @@ def xontribs_load(
try:
update_context(name, ctx=ctx, full_module=full_module)
except XontribNotInstalled:
if not skip_missing:
if not silent_missing:
bad_imports.append(name)
except Exception:
res = ExitCode.INIT_FAILED
Expand Down

0 comments on commit 1e57bc7

Please sign in to comment.