converted to python package

This commit is contained in:
ahmadbilalkhalid 2019-12-02 22:37:14 +05:00
commit 8bb860024a
23 changed files with 110 additions and 309 deletions

9
ucloud_cli/helper.py Normal file
View 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))