Skip to content

Commit

Permalink
Fix experiment_config error message (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik authored Sep 16, 2024
1 parent 46012fa commit 6557b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions sdks/python/src/opik/api_objects/opik_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,10 @@ def create_experiment(

if isinstance(experiment_config, Mapping):
metadata = jsonable_encoder.jsonable_encoder(experiment_config)
else:
elif experiment_config is not None:
LOGGER.error(
"Experiment config must be dictionary, but %s was provided. Config will not be logged."
"Experiment config must be dictionary, but %s was provided. Config will not be logged.",
experiment_config,
)
metadata = None

Expand Down
1 change: 0 additions & 1 deletion sdks/python/tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def _random_chars(n: int = 6) -> str:
@pytest.fixture(scope="session")
def configure_e2e_tests_env():
os.environ["OPIK_PROJECT_NAME"] = "e2e-tests"
os.environ["OPIK_URL_OVERRIDE"] = "http://localhost:5173/api"


@pytest.fixture()
Expand Down

0 comments on commit 6557b8a

Please sign in to comment.