This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
27 lines
425 B
Python
27 lines
425 B
Python
"""
|
|
Common Purpose Errors
|
|
"""
|
|
|
|
from django.core.exceptions import ObjectDoesNotExist
|
|
|
|
|
|
class CourseNotFoundError(ObjectDoesNotExist):
|
|
"""
|
|
Course was not found.
|
|
"""
|
|
pass
|
|
|
|
|
|
class PageNotFoundError(ObjectDoesNotExist):
|
|
"""
|
|
Page was not found. Used for paginated endpoint.
|
|
"""
|
|
pass
|
|
|
|
|
|
class DiscussionNotFoundError(ObjectDoesNotExist):
|
|
"""
|
|
Discussion Module was not found.
|
|
"""
|
|
pass
|