summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2016-01-22 12:36:47 +0100
committerTobias Brox <tobias@redpill-linpro.com>2016-01-22 12:36:47 +0100
commitd282884ff2ea1e5cb3c7160c3193111b39c6219e (patch)
treee00f6eabff32dad8cc3357a45b4bd4951ba2a6d4
parent04eb15d4b8a67fea9bd7658ad41ccad911472301 (diff)
downloadcalendar-cli-d282884ff2ea1e5cb3c7160c3193111b39c6219e.zip
bugfix, ref issue #18 on github
-rwxr-xr-xcalendar-cli.py5
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():