From 2e8507ff688a894a7aca4b33668ad3f20f056d47 Mon Sep 17 00:00:00 2001 From: archibate <1931127624@qq.com> Date: Tue, 14 Jul 2020 22:01:54 +0800 Subject: [PATCH] [skip ci] rev --- python/taichi/__init__.py | 1 - python/taichi/core/util.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/taichi/__init__.py b/python/taichi/__init__.py index 2173bc210384a..e64206090cff4 100644 --- a/python/taichi/__init__.py +++ b/python/taichi/__init__.py @@ -30,4 +30,3 @@ def test(): __version__ = (core.get_version_major(), core.get_version_minor(), core.get_version_patch()) -profiler() diff --git a/python/taichi/core/util.py b/python/taichi/core/util.py index e78ad054d9333..61f097a972a48 100644 --- a/python/taichi/core/util.py +++ b/python/taichi/core/util.py @@ -312,7 +312,7 @@ def prepare_sandbox(src): sys.path.append(tmp_dir) try: import_ti_core(tmp_dir) - except ImportError as e: + except Exception as e: from colorama import Fore, Back, Style print_red_bold("Taichi core import failed: ", end='') print(e)