spacecmd/src/lib/activationkey.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit bdb6bf21a93df083b1c601d799dbca9032d3a539 Author: Aron Parsons aparsons@redhat.com Date: Thu Oct 7 10:56:57 2010 -0400
spacecmd: fix unhandled exception in activationkey_create
diff --git a/spacecmd/src/lib/activationkey.py b/spacecmd/src/lib/activationkey.py index 740ac30..c6721ec 100644 --- a/spacecmd/src/lib/activationkey.py +++ b/spacecmd/src/lib/activationkey.py @@ -622,7 +622,10 @@ def do_activationkey_create(self, args): options.entitlements = options.entitlements.split(',')
# remove empty strings from the list - options.entitlements.remove('') + try: + options.entitlements.remove('') + except: + pass else: options.entitlements = []