input: Write a python function to handle exceptions in a try-except block using a logging handler.
  assert my_function() == "Handled error"
output: import logging
  
  def my_function():
      try:
          # This is an example of code that will raise an exception
          result = 1 / 0
      except ZeroDivisionError as e:
          logging.error("Exception occurred", exc_info=True)
          return "Handled error"