[rllib] Don't crash printing out error message (#3054)

* fix er

* update
This commit is contained in:
Eric Liang
2018-10-13 19:50:23 -07:00
committed by GitHub
parent 473ee4eb3f
commit 866c7a574c
+1 -2
View File
@@ -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.