Explorar el Código

Default to an empty list of events.

master
Chris Smith hace 6 años
padre
commit
7d32d1b9a3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      main.py

+ 1
- 1
main.py Ver fichero

@@ -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…
Cancelar
Guardar