diff options
| author | 2019-01-22 17:16:04 +0000 | |
|---|---|---|
| committer | 2019-01-22 17:16:04 +0000 | |
| commit | c69f4414a06491db8b6d803dd50ba250c80464e0 (patch) | |
| tree | c77d2063f874bac780cb2a56f1bb6c70d970ae08 /modules/github | |
| parent | We only need one '-' between tweet content and short url (tweets.py) (diff) | |
| signature | ||
Handle a situation where a repo full name isn't provided and there isn't one set
as default (github)
Diffstat (limited to 'modules/github')
| -rw-r--r-- | modules/github/module.py | 4 |
1 files changed, 3 insertions, 1 deletions
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") |
