Fix typo in horizon/exceptions.py
Change-Id: Ia3b98a3eeceab6fc4f8d3b6930b888549654f02c
This commit is contained in:
parent
69147c0c30
commit
3fe0802eaa
|
@ -31,7 +31,7 @@ from horizon import messages
|
|||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
SEPERATOR = '\u2026'
|
||||
SEPARATOR = '\u2026'
|
||||
|
||||
|
||||
class HorizonReporterFilter(SafeExceptionReporterFilter):
|
||||
|
@ -263,7 +263,7 @@ HANDLE_EXC_METHODS = [
|
|||
|
||||
|
||||
def _append_detail(message, details):
|
||||
return encoding.force_text(message) + SEPERATOR + \
|
||||
return encoding.force_text(message) + SEPARATOR + \
|
||||
encoding.force_text(details)
|
||||
|
||||
|
||||
|
|
|
@ -19,4 +19,4 @@ register = template.Library()
|
|||
|
||||
@register.filter(name='split_message')
|
||||
def split_message(value):
|
||||
return value.split(exceptions.SEPERATOR)
|
||||
return value.split(exceptions.SEPARATOR)
|
||||
|
|
|
@ -26,7 +26,7 @@ class HandleTests(test.TestCase):
|
|||
# 'Because the container is not empty, it can not be deleted.'
|
||||
|
||||
expected = ['error', force_text(translated_unicode +
|
||||
exceptions.SEPERATOR +
|
||||
exceptions.SEPARATOR +
|
||||
translated_unicode), '']
|
||||
|
||||
req = self.request
|
||||
|
@ -81,7 +81,7 @@ class HandleTests(test.TestCase):
|
|||
message = "Couldn't make the thing"
|
||||
exc_msg = "Exception string"
|
||||
details = "custom detail message"
|
||||
expected = ['error', message + exceptions.SEPERATOR + details, '']
|
||||
expected = ['error', message + exceptions.SEPARATOR + details, '']
|
||||
req = self.request
|
||||
req.META['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
|
||||
|
||||
|
|
Loading…
Reference in New Issue