From 61d8a17de094ffaaea3dfe53485ca9d48f7dc9d4 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Fri, 16 Feb 2018 17:08:25 -0800 Subject: [PATCH] [rllib] Change NotImplemented -> NotImplementedError. (#1535) --- python/ray/rllib/a3c/tfpolicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/rllib/a3c/tfpolicy.py b/python/ray/rllib/a3c/tfpolicy.py index d3816ba55..4816a7fef 100644 --- a/python/ray/rllib/a3c/tfpolicy.py +++ b/python/ray/rllib/a3c/tfpolicy.py @@ -38,7 +38,7 @@ class TFPolicy(Policy): elif isinstance(action_space, gym.spaces.Discrete): self.ac = tf.placeholder(tf.int64, [None], name="ac") else: - raise NotImplemented( + raise NotImplementedError( "action space" + str(type(action_space)) + "currently not supported") self.adv = tf.placeholder(tf.float32, [None], name="adv")