old_contents: """Config file error in a MPF config file."""
  from mpf._version import log_url
  
  
  class ConfigFileError(AssertionError):
  
      """Error in a config file found."""
  
      def __init__(self, message, error_no, logger_name, context=None, url_name=None):
          """Initialise exception."""
          self._logger_name = logger_name
          self._error_no = error_no
          self._context = context
          if url_name:
              self._url_name = url_name
          else:
              self._url_name = logger_name
          super().__init__(message)
  
      def __str__(self):
          """Return nice string."""
          error_slug = "CFE-{}-{}".format(self._url_name, self._error_no)
          error_url = log_url.format(error_slug)
          if self._context:
              return "Config File Error in {}: {} Context: {} Error Code: {} ({})".format(
                  self._logger_name, super().__str__(), self._context, error_slug, error_url)
  
          return "Config File Error in {}: {} Error Code: {} ({})".format(
              self._logger_name, super().__str__(), error_slug, error_url)
  
new_contents: """Config file error in a MPF config file."""
  from mpf._version import log_url
  
  
  class ConfigFileError(AssertionError):
  
      """Error in a config file found."""
  
      # pylint: disable-msg=too-many-arguments
      def __init__(self, message, error_no, logger_name, context=None, url_name=None):
          """Initialise exception."""
          self._logger_name = logger_name
          self._error_no = error_no
          self._context = context
          if url_name:
              self._url_name = url_name
          else:
              self._url_name = logger_name
          super().__init__(message)
  
      def __str__(self):
          """Return nice string."""
          error_slug = "CFE-{}-{}".format(self._url_name, self._error_no)
          error_url = log_url.format(error_slug)
          if self._context:
              return "Config File Error in {}: {} Context: {} Error Code: {} ({})".format(
                  self._logger_name, super().__str__(), self._context, error_slug, error_url)
  
          return "Config File Error in {}: {} Error Code: {} ({})".format(
              self._logger_name, super().__str__(), error_slug, error_url)
  
subject: fix linter