From e16759e0f7aec31d2ec9bad8f47e7dbc2d72e742 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 16 Jan 2020 13:26:21 +0000 Subject: [PATCH] malcontent-client: Fix error when running with no arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default value for the `user` argument wasn’t looked up, since parsing an empty command line doesn’t go through the `parser_get_app_filter` subparser. Signed-off-by: Philip Withnall --- malcontent-client/malcontent-client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/malcontent-client/malcontent-client.py b/malcontent-client/malcontent-client.py index 61072cb..2c53018 100644 --- a/malcontent-client/malcontent-client.py +++ b/malcontent-client/malcontent-client.py @@ -409,7 +409,7 @@ def main(): subparsers = parser.add_subparsers(metavar='command', help='command to run (default: ' '‘get-app-filter’)') - parser.set_defaults(function=command_get_app_filter) + parser.set_defaults(function=command_get_app_filter, user='') parser.add_argument('-q', '--quiet', action='store_true', help='output no informational messages') parser.set_defaults(quiet=False)