def _get_error_template_path(self):
        """Return the path to the error template for the current action.
        The error template is called by the action's name, followed by __error (double underscore).
        Example:
        Controller: foo
        Action: list
        Template: foo/list.html
        Error template: foo/list__error.html
        """
        template_name = None
        if self._is_ajax and self._no_ajax_prefix==False and hasattr(self._on_exception,'ajax_template_name'):
            template_name = self._on_exception.ajax_template_name
        elif hasattr(self._on_exception,'template_name'):
            template_name = self._on_exception.template_name
            
        if template_name is None:
            if getattr(self._on_exception, 'use_action_specific_template', False) == False:
                if self._is_ajax and self._no_ajax_prefix==False:
                    template_name = "_error.%(ext)s"
                else:
                    template_name = "error.%(ext)s"
            else:
                template_name_data = {'controller': self._template_prefix,
                                      'action': self._action_name+"__error",
                                      'ext': self._template_extension}
                if self._is_ajax and self._no_ajax_prefix == False:
                    template_name = template_name_data % self._ajax_template_string
                else:
                    template_name = self._template_string % template_name_data
        return template_name
dataset/ETHPy150Open zeraien/django-url-framework/django_url_framework/controller.py/ActionController._get_error_template_path/swapped operands of `%`