From 1b62bed01ab442752d78a2f5fd550152cafe656c Mon Sep 17 00:00:00 2001 From: sidpremkumar Date: Sep 18 2019 19:46:02 +0000 Subject: Small fix for github markdown fielld --- diff --git a/sync2jira/downstream.py b/sync2jira/downstream.py index a959a71..250cd11 100644 --- a/sync2jira/downstream.py +++ b/sync2jira/downstream.py @@ -1059,9 +1059,11 @@ def sync_with_jira(issue, config): if not config['sync2jira']['develop'] and not check_jira_status(client): log.warning(' The JIRA server looks like its down. Shutting down...') raise JIRAError - if issue.source == 'github' and issue.content and \ - 'github_markdown' in issue.downstream['updates']: - issue.content = pypandoc.convert_text(issue.content, 'plain', format='md') + + if issue.downstream.get('updates', None): + if issue.source == 'github' and issue.content and \ + 'github_markdown' in issue.downstream['updates']: + issue.content = pypandoc.convert_text(issue.content, 'plain', format='md') # First, check to see if we have a matching issue using the new method. # If we do, then just bail out. No sync needed.