This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
20 lines
383 B
Python
20 lines
383 B
Python
""" Errors used by the Discussion API. """
|
|
|
|
|
|
from django.core.exceptions import ObjectDoesNotExist
|
|
|
|
|
|
class DiscussionDisabledError(ObjectDoesNotExist):
|
|
""" Discussion is disabled. """
|
|
pass
|
|
|
|
|
|
class ThreadNotFoundError(ObjectDoesNotExist):
|
|
""" Thread was not found. """
|
|
pass
|
|
|
|
|
|
class CommentNotFoundError(ObjectDoesNotExist):
|
|
""" Comment was not found. """
|
|
pass
|