diff options
| author | 2018-11-06 14:08:35 +0000 | |
|---|---|---|
| committer | 2018-11-06 14:08:35 +0000 | |
| commit | 276fe2c8fa7b6d42d1568092e6a8513e2dbe2990 (patch) | |
| tree | 511f882e5dee3af26c8ec27eae64dd6a21807a79 | |
| parent | Typo in modules/github.py, 'for output in output' -> 'for output in outputs' (diff) | |
| signature | ||
Allow a `json.loads` error in modules/github.py to bubble back up to
modules/rest_api.py
| -rw-r--r-- | modules/github.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/github.py b/modules/github.py index d0438782..bc3e1ad4 100644 --- a/modules/github.py +++ b/modules/github.py @@ -9,11 +9,7 @@ COMMIT_URL = "https://github.com/%s/commit/%s" class Module(ModuleManager.BaseModule): @utils.hook("api.post.github") def github(self, event): - data = event["data"] - try: - data = json.loads(data) - except: - return + data = json.loads(event["data"]) full_name = data["repository"]["full_name"] hooks = self.bot.database.channel_settings.find_by_setting( |
