mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-18 15:05:08 +00:00
change to _session for consistency
This commit is contained in:
parent
63fb8021ce
commit
ef4d46057e
4 changed files with 32 additions and 13 deletions
|
@ -86,11 +86,17 @@ class AlreadyStarted(APIError):
|
|||
class NotStarted(APIError):
|
||||
"""Raised when a call is made before start is called."""
|
||||
def __init__(self):
|
||||
msg = 'You must call `await <Github_instance>.start()` before making this call.'
|
||||
msg = 'You must call `await <Github.GHClient_instance>.start()` before making this call.'
|
||||
super().__init__(msg)
|
||||
|
||||
class RepositoryAlreadyExists(APIError):
|
||||
"""Raised when a repository already exists."""
|
||||
def __init__(self):
|
||||
msg = 'The repository you are trying to create already exists.'
|
||||
super().__init__(msg)
|
||||
|
||||
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)
|
Loading…
Add table
Add a link
Reference in a new issue