Commit e9f997bd by Mushtaq Ali

Merge pull request #8233 from mushtaqak/mushtaq/tnl2055-unicode-url-issue

Fix - Unicode character in tab number shouldn't return 500  -TNL-2055
parents c2999af8 c575c898
......@@ -216,3 +216,4 @@ Randy Ostler <rando305@gmail.com>
Thomas Young <thomas@upcoder.com>
Andrew Dekker <simultech@gmail.com>
Christopher Lee <clee@edx.org>
Mushtaq Ali <mushtaque.ali@arbisoft.com>
......@@ -262,7 +262,6 @@ class ViewsTestCase(ModuleStoreTestCase):
response = self.client.get(request_url)
self.assertEqual(response.status_code, 404)
@unittest.skip
def test_unicode_handling_in_url(self):
url_parts = [
'/courses',
......
......@@ -364,7 +364,7 @@ def _index_bulk_op(request, course_key, chapter, section, position):
try:
int(position)
except ValueError:
raise Http404("Position {} is not an integer!".format(position))
raise Http404(u"Position {} is not an integer!".format(position))
user = request.user
course = get_course_with_access(user, 'load', course_key, depth=2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment