init home-assistant
This commit is contained in:
10
home-assistant/script/scaffold/error.py
Normal file
10
home-assistant/script/scaffold/error.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""Errors for scaffolding."""
|
||||
|
||||
|
||||
class ExitApp(Exception):
|
||||
"""Exception to indicate app should exit."""
|
||||
|
||||
def __init__(self, reason, exit_code=1):
|
||||
"""Initialize the exit app exception."""
|
||||
self.reason = reason
|
||||
self.exit_code = exit_code
|
||||
Reference in New Issue
Block a user