Skip to content

Commit

Permalink
[dace] Handle error on module import
Browse files Browse the repository at this point in the history
  • Loading branch information
edopao committed Sep 12, 2023
1 parent 5ea33fb commit b4fc385
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

try:
import dace
except ModuleNotFoundError:
import sys

print("Error, module dace not found", file=sys.stderr)
exit()

from typing import Any, Mapping, Sequence

import dace
import numpy as np

import gt4py.next.iterator.ir as itir
Expand Down

0 comments on commit b4fc385

Please sign in to comment.