converted to python package
This commit is contained in:
parent
51e1130071
commit
8bb860024a
23 changed files with 110 additions and 309 deletions
9
ucloud_cli/helper.py
Normal file
9
ucloud_cli/helper.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def exception_handler(exception_type, exception, traceback):
|
||||
if bool(os.getenv('DEBUG_UCLOUD')) is True:
|
||||
sys.__excepthook__(exception_type, exception, traceback)
|
||||
else:
|
||||
print("%s: %s" % (exception_type.__name__, exception))
|
||||
Loading…
Add table
Add a link
Reference in a new issue