old_contents: import os
  import boto3
  import botocore.exceptions
  
  
  def publish_to_harvesting(subject, message):
      '''Publish a SNS message to the harvesting topic channel'''
      client = boto3.client('sns')
      # NOTE: this appears to raise exceptions if problem
      try:
          client.publish(
              TopicArn=os.environ['ARN_TOPIC_HARVESTING_REPORT'],
              Message=message,
              Subject=subject
              )
      except botocore.exceptions.BotoCoreError, e:
          import sys
          print >> sys.stderr, 'Exception in Boto SNS: {}'.format(e)
  
new_contents: import os
  import boto3
  import botocore.exceptions
  import logging
  
  logger = logging.getLogger(__name__)
  
  def publish_to_harvesting(subject, message):
      '''Publish a SNS message to the harvesting topic channel'''
      client = boto3.client('sns')
      # NOTE: this appears to raise exceptions if problem
      try:
          client.publish(
              TopicArn=os.environ['ARN_TOPIC_HARVESTING_REPORT'],
              Message=message,
              Subject=subject
              )
      except botocore.exceptions.BotoCoreError, e:
          logger.error('Exception in Boto SNS: {}'.format(e))
  
subject: use logging in sns_message