about summary refs log tree commit diff
diff options
context:
space:
mode:
-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()