Skip to content

Commit

Permalink
fix info cmd from conflicting with info logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Feb 9, 2024
1 parent 9878356 commit 98c89ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions troi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def playlist(patch, quiet, save, token, upload, args, created_for, name, desc, m
patchname = patch
patches = discover_patches()
if patchname not in patches:
info("Cannot load patch '%s'. Use the list command to get a list of available patches." % patchname, file=sys.stderr)
info("Cannot load patch '%s'. Use the list command to get a list of available patches." % patchname)
return None

patch_args = {
Expand Down Expand Up @@ -122,7 +122,7 @@ def list_patches_cli():

@cli.command(name="info")
@click.argument("patch", nargs=1)
def info(patch):
def info_cmd(patch):
"""Get info for a given patch"""
ret = patch_info(patch)
sys.exit(0 if ret else -1)
Expand Down

0 comments on commit 98c89ad

Please sign in to comment.