commit f7712e4e5ef9762f8f82f4eeb9bef50b448ac8f0 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Wed Apr 6 15:09:37 2016 +0200
Check if there is a pattern before checking what is in it
pkgdb2client/cli.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/pkgdb2client/cli.py b/pkgdb2client/cli.py index c9b774f..18b3443 100644 --- a/pkgdb2client/cli.py +++ b/pkgdb2client/cli.py @@ -594,7 +594,7 @@ def do_list(args):
''' namespace = __get_namespace(args) - if '/' in args.pattern: + if args.pattern and '/' in args.pattern: args.pattern = args.pattern.split('/', 1)[1]
LOG.info("pattern : {0}".format(args.pattern))
packagedb-cli-commits@lists.stg.fedorahosted.org