From 77555b432aaaf4722fa079cd83895199be8655e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20D=C3=B6ring?= Date: Mon, 22 Jun 2015 10:23:15 +0200 Subject: [PATCH] added braces to string concatenation --- pylearn2/training_algorithms/bgd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylearn2/training_algorithms/bgd.py b/pylearn2/training_algorithms/bgd.py index f84d9c2250..a9d96e25f9 100644 --- a/pylearn2/training_algorithms/bgd.py +++ b/pylearn2/training_algorithms/bgd.py @@ -152,8 +152,8 @@ def setup(self, model, dataset): if not (model.force_batch_size is None or model.force_batch_size <= 0 or batch_size == model.force_batch_size): - raise ValueError("batch_size is %d but " + - "model.force_batch_size is %d" % + raise ValueError(("batch_size is %d but " + + "model.force_batch_size is %d") % (batch_size, model.force_batch_size)) self.monitor = Monitor.get_monitor(model)