#112 Small fix for github markdown fielld
Merged 4 years ago by sidpremkumar. Opened 4 years ago by sidpremkumar.
sidpremkumar/sync-to-jira github-optional-fix  into  develop

Small fix for github markdown fielld
sidpremkumar • 4 years ago  
file modified
+5 -3
@@ -1059,9 +1059,11 @@ 

      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.

no initial comment

Pull-Request has been merged by sidpremkumar

4 years ago
Metadata