Skip to content

Commit

Permalink
Replace ModuleNotFoundError to ImportError (#190)
Browse files Browse the repository at this point in the history
Co-authored-by: davitbzh <davit@logicalclocks.com>
  • Loading branch information
davitbzh and davitbzh authored Dec 10, 2020
1 parent 5ed9d60 commit 242e17b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/hsfs/client/hopsworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

try:
import jks
except ModuleNotFoundError:
except ImportError:
pass


Expand Down
6 changes: 3 additions & 3 deletions python/hsfs/core/tfdata_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@

try:
import tensorflow as tf
except ModuleNotFoundError:
except ImportError:
tf = mock.Mock()

try:
from pydoop import hdfs
except ModuleNotFoundError:
except ImportError:
hdfs = mock.Mock()

try:
import boto3
except ModuleNotFoundError:
except ImportError:
pass


Expand Down
2 changes: 1 addition & 1 deletion python/hsfs/engine/spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
try:
from pyspark.sql import SparkSession, DataFrame
from pyspark.rdd import RDD
except ModuleNotFoundError:
except ImportError:
pass

from hsfs import feature, training_dataset_feature
Expand Down
2 changes: 1 addition & 1 deletion python/tests/hsfs/core/tfdata_engine_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

try:
import tensorflow as tf
except ModuleNotFoundError:
except ImportError:
pass

from hsfs.core.tfdata_engine import TFDataEngine
Expand Down

0 comments on commit 242e17b

Please sign in to comment.