Show a user-friendly error message

This commit is contained in:
Laurent Bachelier 2014-03-22 02:43:49 +01:00 committed by Romain Bignon
commit 9079db8acd

View file

@ -28,6 +28,8 @@ class PasteNotFound(UserError):
"""
Raised when a paste is not found.
"""
def __init__(self):
return super(PasteNotFound, self).__init__("Paste not found")
class BasePaste(CapBaseObject):