diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-06-29 04:53:54 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-06-29 04:53:54 +0000 |
| commit | b4d763df31d1ae18293859340cf0366146e2acfb (patch) | |
| tree | 167c7d604af1e10ba3ad4fd0b6c8556e87f44a93 | |
| parent | e0da4f4e7f0f33e94b6d56a291db32568abd470f (diff) | |
| download | docutils-b4d763df31d1ae18293859340cf0366146e2acfb.tar.gz | |
prevent duplicate detailed error reporting except when debugging
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@1524 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
| -rw-r--r-- | docutils/docutils/statemachine.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docutils/docutils/statemachine.py b/docutils/docutils/statemachine.py index d0ddb6330..060347ade 100644 --- a/docutils/docutils/statemachine.py +++ b/docutils/docutils/statemachine.py @@ -266,7 +266,8 @@ class StateMachine: transitions = None state = self.get_state(next_state) except: - self.error() + if self.debug: + self.error() raise self.observers = [] return results |
