Skip to content

Commit

Permalink
Merge pull request globus#647 from rudyardrichter/fix-formatter-warning
Browse files Browse the repository at this point in the history
Eliminate a warning about _custom_text_formatter
  • Loading branch information
sirosen authored May 27, 2022
2 parents 1784239 + cb5b67e commit 7db15fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/globus_cli/termio/output_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def _print_as_text():
elif text_format == FORMAT_TEXT_RAW:
click.echo(data)
elif text_format == FORMAT_TEXT_CUSTOM:
# _custom_text_formatter is set along with FORMAT_TEXT_CUSTOM
assert _custom_text_formatter
_custom_text_formatter(data)

# if there's an epilog, print it after any text
Expand Down

0 comments on commit 7db15fb

Please sign in to comment.