Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
ee6306d6
Commit
ee6306d6
authored
Jul 27, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some unicode protection
parent
80b8b5a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
edx_proctoring/backends/software_secure.py
+2
-1
edx_proctoring/views.py
+1
-1
No files found.
edx_proctoring/backends/software_secure.py
View file @
ee6306d6
...
@@ -73,13 +73,14 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
...
@@ -73,13 +73,14 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
if
status
not
in
[
200
,
201
]:
if
status
not
in
[
200
,
201
]:
err_msg
=
(
err_msg
=
(
'Could not register attempt_code = {attempt_code}. '
u
'Could not register attempt_code = {attempt_code}. '
'HTTP Status code was {status_code} and response was {response}.'
.
format
(
'HTTP Status code was {status_code} and response was {response}.'
.
format
(
attempt_code
=
attempt_code
,
attempt_code
=
attempt_code
,
status_code
=
status
,
status_code
=
status
,
response
=
response
response
=
response
)
)
)
)
log
.
error
(
err_msg
)
raise
BackendProvideCannotRegisterAttempt
(
err_msg
)
raise
BackendProvideCannotRegisterAttempt
(
err_msg
)
# get the external ID that Software Secure has defined
# get the external ID that Software Secure has defined
...
...
edx_proctoring/views.py
View file @
ee6306d6
...
@@ -531,7 +531,7 @@ class StudentProctoredExamAttemptCollection(AuthenticatedAPIView):
...
@@ -531,7 +531,7 @@ class StudentProctoredExamAttemptCollection(AuthenticatedAPIView):
except
ProctoredBaseException
,
ex
:
except
ProctoredBaseException
,
ex
:
return
Response
(
return
Response
(
status
=
status
.
HTTP_400_BAD_REQUEST
,
status
=
status
.
HTTP_400_BAD_REQUEST
,
data
=
{
"detail"
:
str
(
ex
)}
data
=
{
"detail"
:
unicode
(
ex
)}
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment