Allow a json.loads
error in modules/github.py to bubble back up to
modules/rest_api.py
This commit is contained in:
parent
be3ee373dd
commit
276fe2c8fa
1 changed files with 1 additions and 5 deletions
|
@ -9,11 +9,7 @@ COMMIT_URL = "https://github.com/%s/commit/%s"
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("api.post.github")
|
@utils.hook("api.post.github")
|
||||||
def github(self, event):
|
def github(self, event):
|
||||||
data = event["data"]
|
data = json.loads(event["data"])
|
||||||
try:
|
|
||||||
data = json.loads(data)
|
|
||||||
except:
|
|
||||||
return
|
|
||||||
|
|
||||||
full_name = data["repository"]["full_name"]
|
full_name = data["repository"]["full_name"]
|
||||||
hooks = self.bot.database.channel_settings.find_by_setting(
|
hooks = self.bot.database.channel_settings.find_by_setting(
|
||||||
|
|
Loading…
Reference in a new issue