diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hooks.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/hooks.rst b/docs/hooks.rst index a6a8d80a..bb079457 100644 --- a/docs/hooks.rst +++ b/docs/hooks.rst @@ -249,10 +249,11 @@ attribute that describes the command which was executed. If your postcommand hook method gets called, you are guaranteed that the command method was called, and that it didn't raise an exception. -If any postcommand hook raises an exception, the exception will be displayed to the user, and no further postcommand hook methods -will be called. Command finalization hooks, if any, will be called. +If any postcommand hook raises an exception, the exception will be displayed to +the user, and no further postcommand hook methods will be called. Command +finalization hooks, if any, will be called. -After all registered precommand hooks have been called, +After all registered postcommand hooks have been called, ``self.postcmd(statement)`` will be called to retain full backward compatibility with ``cmd.Cmd``. |