hooks are not mandatory
authorRalf Jung <post@ralfj.de>
Tue, 29 Dec 2015 13:00:56 +0000 (14:00 +0100)
committerRalf Jung <post@ralfj.de>
Tue, 29 Dec 2015 13:00:56 +0000 (14:00 +0100)
letsencrypt-tiny

index 658eb0739907898172e68f7765bdd2c8d186bbae..c6b4cc0b46f6f106225d06271ac8268c4b35c1ee 100755 (executable)
@@ -35,7 +35,7 @@ def make_backup(fname):
 
 def trigger_hook(hook):
     global config
 
 def trigger_hook(hook):
     global config
-    exe = config['hooks'][hook]
+    exe = config['hooks'].get(hook)
     if exe is not None:
         subprocess.check_call([exe])
 
     if exe is not None:
         subprocess.check_call([exe])