mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Create common Time module and add time set cli command (#1157)
This commit is contained in:
@@ -201,6 +201,8 @@ def CatchAllExceptions(cls):
|
||||
# Handle exit request from click.
|
||||
if isinstance(exc, click.exceptions.Exit):
|
||||
sys.exit(exc.exit_code)
|
||||
if isinstance(exc, click.exceptions.Abort):
|
||||
sys.exit(0)
|
||||
|
||||
echo(f"Raised error: {exc}")
|
||||
if debug:
|
||||
|
Reference in New Issue
Block a user