From 63174b4765985b552aa9cc2a1d72065a242a107e Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Wed, 26 Mar 2014 15:56:22 -0700 Subject: [PATCH] Should be greater or equal to zero and not greater than Change-Id: I7897f847598133cbc1ed425847f2a708e4f6d195 --- taskflow/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskflow/exceptions.py b/taskflow/exceptions.py index 28a424c1..9e557cc6 100644 --- a/taskflow/exceptions.py +++ b/taskflow/exceptions.py @@ -37,7 +37,7 @@ class TaskFlowException(Exception): def pformat(self, indent=2): """Pretty formats a taskflow exception + any connected causes.""" if indent < 0: - raise ValueError("indent must be greater than zero") + raise ValueError("indent must be greater than or equal to zero") def _format(excp, indent_by): lines = []