diff --git a/modules/github/module.py b/modules/github/module.py index 7766c18d..6085face 100644 --- a/modules/github/module.py +++ b/modules/github/module.py @@ -250,7 +250,10 @@ class Module(ModuleManager.BaseModule): branch = None if "ref" in data: - branch = data["ref"].split("/", 2)[2] + if "/" in data["ref"]: + branch = data["ref"].split("/", 2)[2] + else: + branch = data["ref"] hooks = self.bot.database.channel_settings.find_by_setting( "github-hooks")