about summary refs log tree commit diff
path: root/strike.py
diff options
context:
space:
mode:
Diffstat (limited to 'strike.py')
-rwxr-xr-xstrike.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/strike.py b/strike.py
index 9f04a20..1afd0bf 100755
--- a/strike.py
+++ b/strike.py
@@ -47,7 +47,8 @@ def main():
 
     input_dir = basedir/config['Input']['directory']
 
-    exclusions = config['Input']['excludes'].splitlines()
+    try: exclusions = config['Input']['excludes'].splitlines()
+    except KeyError: exclusions = {}
 
     default_template = basedir/config['Templates']['default']
     template = default_template.read_text()