Skip to content

Commit ca417f1

Browse files
authored
Convert experiment not found log to a warning (#2)
1 parent c5f8373 commit ca417f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reddit_experiments/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import logging
3+
import warnings
34

45
from enum import Enum
56
from typing import Dict
@@ -132,7 +133,7 @@ def _get_experiment(self, name: str) -> Optional[Experiment]:
132133
self._cfg_data = self._get_config()
133134

134135
if name not in self._cfg_data:
135-
logger.info("Experiment <%r> not found in experiment config", name)
136+
warnings.warn(f"Experiment <{repr(name)}> not found in experiment config")
136137
return None
137138

138139
try:

0 commit comments

Comments
 (0)