From b6facc6362eb90284f2038f0fdb078e48c3cadb2 Mon Sep 17 00:00:00 2001 From: kaou Date: Mon, 21 Jan 2019 19:13:38 +0000 Subject: [PATCH] Fixed exception when providing 'True' instead of a dictionnary as option --- buildbot_gitea/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_gitea/webhook.py b/buildbot_gitea/webhook.py index 01ebbac..cad92d9 100644 --- a/buildbot_gitea/webhook.py +++ b/buildbot_gitea/webhook.py @@ -29,7 +29,7 @@ class GiteaHandler(BaseHookHandler): project = repository['full_name'] commits = payload['commits'] - if self.options.get('onlyIncludePushCommit', False): + if isinstance(self.options, dict) and self.options.get('onlyIncludePushCommit', False): commits = commits[:1] for commit in commits: