-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from stfc/extending_classes_no_dir
Extending classes no dir
- Loading branch information
Showing
9 changed files
with
223 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
"""This module contains custom exceptions to handle errors for the Application.""" | ||
|
||
|
||
class RepoNotFound(Exception): | ||
class RepoNotFound(LookupError): | ||
"""Error: The requested repository does not exist on GitHub.""" | ||
|
||
|
||
class UnknownHTTPError(Exception): | ||
class UnknownHTTPError(RuntimeError): | ||
"""Error: The received HTTP response is unexpected.""" | ||
|
||
|
||
class RepositoriesNotGiven(Exception): | ||
class RepositoriesNotGiven(RuntimeError): | ||
"""Error: repos.csv does not contain any repositories.""" | ||
|
||
|
||
class TokensNotGiven(Exception): | ||
class TokensNotGiven(RuntimeError): | ||
"""Error: Token values are either empty or not given.""" | ||
|
||
|
||
class UserMapNotGiven(Exception): | ||
class UserMapNotGiven(RuntimeError): | ||
"""Error: User map is empty.""" | ||
|
||
|
||
class BadGitHubToken(Exception): | ||
class BadGitHubToken(RuntimeError): | ||
"""Error: GitHub REST Api token is invalid.""" | ||
|
||
|
||
class ChannelNotFound(LookupError): | ||
"""Error: The channel was not found.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
""" | ||
|
||
import asyncio | ||
from src.slack_app import run_app | ||
from slack_app import run_app | ||
|
||
|
||
def main(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.