old_contents: # -*- coding: utf8 -*-
  """
  .. module:: burpui.exceptions
      :platform: Unix
      :synopsis: Burp-UI exceptions module.
  
  .. moduleauthor:: Ziirish <hi+burpui@ziirish.me>
  
  """
  # Agent do not need "real" HTTP errors
  try:
      from werkzeug.exceptions import HTTPException
  except ImportError:
      HTTPException = object
  
  
  class BUIserverException(HTTPException):
      """Raised in case of internal error."""
      code = 500
  
      def __init__(self, message):
          self.description = message
  
      def __str__(self):
          return self.description
  
new_contents: # -*- coding: utf8 -*-
  """
  .. module:: burpui.exceptions
      :platform: Unix
      :synopsis: Burp-UI exceptions module.
  
  .. moduleauthor:: Ziirish <hi+burpui@ziirish.me>
  
  """
  # Agent do not need "real" HTTP errors
  try:
      from werkzeug.exceptions import HTTPException
  except ImportError:
      HTTPException = Exception
  
  
  class BUIserverException(HTTPException):
      """Raised in case of internal error."""
      code = 500
  
      def __init__(self, message):
          self.description = message
  
      def __str__(self):
          return self.description
  
subject: fix base exception type