mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 11:58:37 +09:00
👷 Updated error handling (#348)
This commit is contained in:
@@ -7,6 +7,11 @@ class BuilderError(Exception):
|
||||
|
||||
message = "Default Error message."
|
||||
|
||||
def __init__(self: Self, *args: Any, **kwargs: Any) -> None:
|
||||
if args:
|
||||
self.message = args[0]
|
||||
super().__init__(self.message)
|
||||
|
||||
def __str__(self: Self) -> str:
|
||||
"""Return error message."""
|
||||
return self.message
|
||||
|
||||
Reference in New Issue
Block a user