Revision 26cd03ca kamaki/cli/config.py
b/kamaki/cli/config.py | ||
---|---|---|
102 | 102 |
pass |
103 | 103 |
|
104 | 104 |
def items(self, section, include_defaults=False): |
105 |
d = dict(DEFAULTS[section]) if include_defaults else {} |
|
105 |
try: |
|
106 |
d = dict(DEFAULTS[section]) if include_defaults else {} |
|
107 |
except KeyError: |
|
108 |
d = {} |
|
106 | 109 |
try: |
107 | 110 |
d.update(RawConfigParser.items(self, section)) |
108 | 111 |
except NoSectionError: |
Also available in: Unified diff