# HG changeset patch # User Jeff Hammel # Date 1340920469 25200 # Node ID d1911d9b5b198c66935ae4bd7d25a677a389ec27 # Parent f7bc409add340f2a751d67ead95661d5aafe97c2 if an option cannot be coerced to a type we should just not add a CLI handler for it diff -r f7bc409add34 -r d1911d9b5b19 configuration/configuration.py --- a/configuration/configuration.py Thu Jun 28 14:48:17 2012 -0700 +++ b/configuration/configuration.py Thu Jun 28 14:54:29 2012 -0700 @@ -408,12 +408,10 @@ for key, value in self.items(): try: handler = self.types[self.option_type(key)] - except: - # XXX print this for now - # ultimately, if an option can't be coerced to a type + except KeyError: + # if an option can't be coerced to a type # we should just not add a CLI handler for it - print key, value - raise + continue args, kw = handler(key, value) if not args: # No CLI interface