From 866c7a574c632ff0f2f63cde0a6343bf89cbeea1 Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Sat, 13 Oct 2018 19:50:23 -0700 Subject: [PATCH] [rllib] Don't crash printing out error message (#3054) * fix er * update --- python/ray/rllib/agents/agent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/ray/rllib/agents/agent.py b/python/ray/rllib/agents/agent.py index 8041eba06..28b423417 100644 --- a/python/ray/rllib/agents/agent.py +++ b/python/ray/rllib/agents/agent.py @@ -3,7 +3,6 @@ from __future__ import division from __future__ import print_function import copy -import json import os import pickle import tempfile @@ -175,7 +174,7 @@ class Agent(Trainable): return ("\n\nYou can adjust the resource requests of RLlib agents by " "setting `num_workers` and other configs. See the " "DEFAULT_CONFIG defined by each agent for more info.\n\n" - "The config of this agent is: " + json.dumps(config)) + "The config of this agent is: {}".format(config)) def __init__(self, config=None, env=None, logger_creator=None): """Initialize an RLLib agent.