Fixed exception when providing 'True' instead of a dictionnary as option

This commit is contained in:
kaou 2019-01-21 19:13:38 +00:00
parent 4426a875b5
commit b6facc6362
1 changed files with 1 additions and 1 deletions

View File

@ -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: