Przeglądaj źródła

Default to an empty list of events.

master
Chris Smith 6 lat temu
rodzic
commit
7d32d1b9a3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      main.py

+ 1
- 1
main.py Wyświetl plik

@@ -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
 

Ładowanie…
Anuluj
Zapisz