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
ef4b7b9b
Commit
ef4b7b9b
authored
11 years ago
by
Alexander Kryklia
Browse files
Options
Downloads
Patches
Plain Diff
Add custom LTI exception.
parent
86dbb1fe
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/exceptions.py
+8
-0
8 additions, 0 deletions
common/lib/xmodule/xmodule/exceptions.py
common/lib/xmodule/xmodule/lti_module.py
+1
-0
1 addition, 0 deletions
common/lib/xmodule/xmodule/lti_module.py
with
9 additions
and
0 deletions
common/lib/xmodule/xmodule/exceptions.py
+
8
−
0
View file @
ef4b7b9b
...
...
@@ -31,3 +31,11 @@ class SerializationError(Exception):
def
__init__
(
self
,
location
,
msg
):
super
(
SerializationError
,
self
).
__init__
(
msg
)
self
.
location
=
location
class
LTIError
(
Exception
):
"""
An error occured when parsing LTI paramaters from
course settings or LTI unit
"""
pass
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/lti_module.py
+
1
−
0
View file @
ef4b7b9b
...
...
@@ -14,6 +14,7 @@ import urllib
from
xmodule.editing_module
import
MetadataOnlyEditingDescriptor
from
xmodule.x_module
import
XModule
from
xmodule.exceptions
import
LTIError
from
xmodule.course_module
import
CourseDescriptor
from
pkg_resources
import
resource_string
from
xblock.core
import
String
,
Scope
,
List
...
...
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