File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ def handle_webhook(self):
431
431
(created or deleted ),
432
432
]):
433
433
integration = self .get_integration ()
434
- events = integration .provider_data .get ('events' , [])
434
+ events = integration .provider_data .get ('events' , []) if integration . provider_data else []
435
435
if any ([
436
436
GITHUB_CREATE in events ,
437
437
GITHUB_DELETE in events ,
Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ def config(self):
738
738
# probably change this field to be a ForeignKey to avoid repeating the
739
739
# config file over and over again and re-use them to save db data as
740
740
# well
741
- if self .CONFIG_KEY in self ._config :
741
+ if self ._config and self . CONFIG_KEY in self ._config :
742
742
return (
743
743
Build .objects
744
744
.only ('_config' )
You can’t perform that action at this time.
0 commit comments