Skip to content

Commit e1e261d

Browse files
committed
Catch ModuleNotFoundError as well
1 parent 900073a commit e1e261d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_hybrid_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from redisvl.query.hybrid import HybridQuery, build_combination_method
2323

2424
REDIS_HYBRID_AVAILABLE = True
25-
except ImportError:
25+
except (ImportError, ModuleNotFoundError):
2626
REDIS_HYBRID_AVAILABLE = False
2727
# Create dummy classes to avoid import errors
2828
RedisHybridQuery = None # type: ignore

0 commit comments

Comments
 (0)