Show a user-friendly error message
This commit is contained in:
parent
463fdb2016
commit
9079db8acd
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ class PasteNotFound(UserError):
|
||||||
"""
|
"""
|
||||||
Raised when a paste is not found.
|
Raised when a paste is not found.
|
||||||
"""
|
"""
|
||||||
|
def __init__(self):
|
||||||
|
return super(PasteNotFound, self).__init__("Paste not found")
|
||||||
|
|
||||||
|
|
||||||
class BasePaste(CapBaseObject):
|
class BasePaste(CapBaseObject):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue