Skip to content

Commit be261ff

Browse files
authored
Fix Mars import issue (#245)
1 parent 0f0902b commit be261ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

odps/mars_extension/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import mars
17+
try:
18+
import mars
19+
except ImportError:
20+
raise
21+
except Exception as ex:
22+
raise ImportError("Failed to import mars due to " + repr(ex))
1823

1924
from ..compat import Version
2025

0 commit comments

Comments
 (0)