From c80b2531412464d215ef5359a8d967f84634987e Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Thu, 24 Mar 2011 00:27:06 -0600 Subject: [PATCH] minor: improved the exception message --- interp/grid/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interp/grid/__init__.py b/interp/grid/__init__.py index b806b98..3fa83e9 100644 --- a/interp/grid/__init__.py +++ b/interp/grid/__init__.py @@ -58,7 +58,7 @@ class grid(object): attempts += 1 if attempts > MAX_SEARCH_COUNT: - raise Exception("Is the search becoming exhaustive?") + raise Exception("Is the search becoming exhaustive? (%d attempts)" % attempts) cur_cell = cells_to_check.pop(0) checked_cells.append(cur_cell)