Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
65e25143
Commit
65e25143
authored
11 years ago
by
Vik Paruchuri
Browse files
Options
Downloads
Patches
Plain Diff
Convert some exception clauses
parent
2f6b7d1e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+3
-3
3 additions, 3 deletions
...pen_ended_grading_classes/combined_open_ended_modulev1.py
with
3 additions
and
3 deletions
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+
3
−
3
View file @
65e25143
...
...
@@ -145,7 +145,7 @@ class CombinedOpenEndedV1Module():
grace_period_string
=
self
.
instance_state
.
get
(
'
graceperiod
'
,
None
)
try
:
self
.
timeinfo
=
TimeInfo
(
due_date
,
grace_period_string
)
except
:
except
Exception
:
log
.
error
(
"
Error parsing due date information in location {0}
"
.
format
(
location
))
raise
self
.
display_due_date
=
self
.
timeinfo
.
display_due_date
...
...
@@ -363,7 +363,7 @@ class CombinedOpenEndedV1Module():
# if link.startswith(XASSET_SRCREF_PREFIX):
# Placing try except so that if the error is fixed, this code will start working again.
return_html
=
rewrite_links
(
html
,
self
.
rewrite_content_links
)
except
:
except
Exception
:
pass
return
return_html
...
...
@@ -421,7 +421,7 @@ class CombinedOpenEndedV1Module():
last_post_assessment
=
last_post_evaluation
try
:
rubric_data
=
task
.
_parse_score_msg
(
task
.
child_history
[
-
1
].
get
(
'
post_assessment
'
,
""
),
self
.
system
)
except
:
except
Exception
:
log
.
debug
(
"
Could not parse rubric data from child history.
"
"
Likely we have not yet initialized a previous step, so this is perfectly fine.
"
)
rubric_data
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment