1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-19 23:45:09 +00:00

Delete methods, partially done

This commit is contained in:
VarMonke 2022-04-12 20:16:02 +05:30
parent 56760c2752
commit 6483909960
3 changed files with 45 additions and 12 deletions

View file

@ -99,4 +99,10 @@ class GistNotFound(APIError):
"""Raised when a gist is not found."""
def __init__(self):
msg = 'The gist you are trying to access does not exist.'
super().__init__(msg)
super().__init__(msg)
class MissingPermissions(NoAuthProvided): #Why did I subclass NoAuthProvided?
"""Raised when a user does not have permissions to perform an action."""
def __init__(self):
msg = 'You do not have permission to perform this action.'
super().__init__(msg)