Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit c6f42a4

Browse files
committed
Fix missing check
1 parent 29f2c02 commit c6f42a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cortex/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ class ModelClient(_Client):
4545
def __init__(self, *args, **kwargs):
4646
super().__init__(*args, **kwargs)
4747
# Setup model registry by default
48-
self._setup_model_client()
48+
if mlflow is not None:
49+
self._setup_model_client()
4950

5051
def _setup_model_client(self):
5152
# Generate a JWT, this call stores the JWT in `_serviceconnector.jwt` ( meh )

0 commit comments

Comments
 (0)