From 0857e0f1e15b61c4b14909ae39805fc8576b9d53 Mon Sep 17 00:00:00 2001 From: Peter Mosmans Date: Wed, 7 Jun 2017 19:44:24 +1000 Subject: [PATCH 1/2] Catch gitlab exception properly --- chatops/python/gitlab-to-pentext.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/chatops/python/gitlab-to-pentext.py b/chatops/python/gitlab-to-pentext.py index 26ef11c..7710b68 100644 --- a/chatops/python/gitlab-to-pentext.py +++ b/chatops/python/gitlab-to-pentext.py @@ -202,11 +202,14 @@ def list_issues(gitserver, options): """ Lists all issues for options['issues'] """ - for issue in gitserver.project_issues.list(project_id=options['issues'], - per_page=999): - if issue.state == 'closed' and not options['closed']: - continue - add_item(issue, options) + try: + for issue in gitserver.project_issues.list(project_id=options['issues'], + per_page=999): + if issue.state == 'closed' and not options['closed']: + continue + add_item(issue, options) + except gitlab.exceptions.GitlabListError as exception: + print_error('Could not access items ({0})'.format(exception)) def list_projects(gitserver): From 9a838f0408fd1701667f572db7390198a97f0645 Mon Sep 17 00:00:00 2001 From: Patricia Piolon Date: Wed, 7 Jun 2017 14:30:49 +0200 Subject: [PATCH 2/2] Update RELEASE_NOTES.md --- xml/RELEASE_NOTES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml/RELEASE_NOTES.md b/xml/RELEASE_NOTES.md index d0517cc..60da543 100644 --- a/xml/RELEASE_NOTES.md +++ b/xml/RELEASE_NOTES.md @@ -8,6 +8,8 @@ March 29th, 2017 In reports, you now have access to the `` placeholder. It takes an optional attribute `@threatLevel` and returns the number of findings with that threatLevel in the report. If no `@threatLevel` attribute is added, it returns the total number of findings in the report. Useful for Results in a Nutshell type of texts. +Example: `` + March 20th, 2017 ----------------