From d3deca3c99c299149a30aa3ec760dc17f8abc456 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 18 Feb 2020 12:59:46 -0500 Subject: Added apply_style to CompletionError Simplified error class structure in argparse_completer.py --- examples/basic_completion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/basic_completion.py b/examples/basic_completion.py index b043e157..9523ac67 100755 --- a/examples/basic_completion.py +++ b/examples/basic_completion.py @@ -16,7 +16,6 @@ import functools from typing import List import cmd2 -from cmd2 import ansi # List of strings used with completion functions food_item_strs = ['Pizza', 'Ham', 'Ham Sandwich', 'Potato'] @@ -99,7 +98,7 @@ class BasicCompletion(cmd2.Cmd): - Reading a database to retrieve a tab completion data set failed - A previous command line argument that determines the data set being completed is invalid """ - raise cmd2.CompletionError(ansi.style_error("This is how a CompletionError behaves")) + raise cmd2.CompletionError("This is how a CompletionError behaves") if __name__ == '__main__': -- cgit v1.2.1