1 Star 0 Fork 237

东方未明/StockAnalysisSystem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.py 823 Bytes
一键复制 编辑 原始数据 按行查看 历史
SleepySoft 提交于 2020-08-24 21:37 . Correct typo
import os
import sys
import traceback
import import_all
import StockAnalysisSystem.api as sas_api
def main():
# project_path = os.path.dirname(os.path.abspath(__file__))
sas_api.main()
print('Process Quit.')
# ----------------------------------------------------------------------------------------------------------------------
def exception_hook(_type, value, tback):
# log the exception here
print('Exception hook triggered.')
print(_type)
print(value)
print(tback)
# then call the default handler
sys.__excepthook__(_type, value, tback)
if __name__ == "__main__":
sys.excepthook = exception_hook
try:
main()
except Exception as e:
print('Error =>', e)
print('Error =>', traceback.format_exc())
exit()
finally:
pass
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/waxm/StockAnalysisSystem.git
git@gitee.com:waxm/StockAnalysisSystem.git
waxm
StockAnalysisSystem
StockAnalysisSystem
master

搜索帮助