Browse Source

Default to an empty list of events.

master
Chris Smith 5 years ago
parent
commit
7d32d1b9a3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      main.py

+ 1
- 1
main.py View File

@@ -46,7 +46,7 @@ def handle_hook(service, identifier, hash):
46 46
         app.logger.info(f"Unknown service {service}, known: {services.keys()}")
47 47
         abort(404)
48 48
 
49
-    handle_events(services[service].accept_hook(identifier, request))
49
+    handle_events(services[service].accept_hook(identifier, request) or [])
50 50
 
51 51
     return "", 204
52 52
 

Loading…
Cancel
Save