Skip to content

Commit 5efcde1

Browse files
authored
Fix for exception in optimizer (#1084)
Signed-off-by: Mandana Vaziri <[email protected]>
1 parent cbfd9bc commit 5efcde1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pdl/optimize/pdl_optimizer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ def save_experiment(self):
254254
exp_file = self.experiment_path / f"{self.experiment_uuid}.json"
255255

256256
with exp_file.open("w") as f:
257-
json.dump(self.experiment_log, f)
257+
try:
258+
json.dump(self.experiment_log, f)
259+
except TypeError:
260+
logger.warning("Unable to save experiment") # TODO
258261

259262
return exp_file
260263

0 commit comments

Comments
 (0)