Skip to content
Snippets Groups Projects
Commit ceb8e02b authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#66 Wrap issue create function in try catch clause

parent 17fc8af1
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,10 @@ def main():
while retries > 0:
retries -= 1
time.sleep(delay)
issue = git.project_issues.create(arguments, project_id=project.pid)
try:
issue = git.project_issues.create(arguments, project_id=project.pid)
except Exception, e:
pass
if issue:
retries = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment