From c69f4414a06491db8b6d803dd50ba250c80464e0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 22 Jan 2019 17:16:04 +0000 Subject: [PATCH] Handle a situation where a repo full name isn't provided and there isn't one set as default (github) --- modules/github/module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/github/module.py b/modules/github/module.py index 462d132c..e2bee336 100644 --- a/modules/github/module.py +++ b/modules/github/module.py @@ -70,7 +70,9 @@ class Module(ModuleManager.BaseModule): if not repo: repo = channel.get_setting("github-default-repo", None) - username, _, repository = repo.partition("/") + username, repository = None, None + if repo: + username, _, repository = repo.partition("/") if not username or not repository or not number: raise utils.EventError("Please provide username/repo#number")