code: def synchronous(function, event):
      
      try:
          function(event)
      except Exception as error:
          logger = get_function_logger(function)
          logger.exception(error)
docs: Runs the function synchronously taking care of exceptions.