diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2016-01-22 12:36:47 +0100 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2016-01-22 12:36:47 +0100 |
commit | d282884ff2ea1e5cb3c7160c3193111b39c6219e (patch) | |
tree | e00f6eabff32dad8cc3357a45b4bd4951ba2a6d4 | |
parent | 04eb15d4b8a67fea9bd7658ad41ccad911472301 (diff) | |
download | calendar-cli-d282884ff2ea1e5cb3c7160c3193111b39c6219e.zip |
bugfix, ref issue #18 on github
-rwxr-xr-x | calendar-cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar-cli.py b/calendar-cli.py index c85fab2..d812366 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -611,11 +611,12 @@ def todo_delete(caldav_conn, args): task.delete() def config_section(config, section='default'): - if 'inherits' in config[section]: + if section in config and 'inherits' in config[section]: ret = config_section(config, config[section]['inherits']) else: ret = {} - ret.update(config[section]) + if section in config: + ret.update(config[section]) return ret def main(): |