code: def consult_error_hook(self, item_session: ItemSession, error: BaseException):
          '''Return scripting action when an error occured.'''
          try:
              return self.hook_dispatcher.call(
                  PluginFunctions.handle_error, item_session, error)
          except HookDisconnected:
              return Actions.NORMAf consult_error_hook(self, item_session: ItemSession, error: BaseException):
          '''Return scripting action when an error occured.'''
          try:
              return self.hook_dispatcher.call(
                  PluginFunctions.handle_error, item_session, error)
          except HookDisconnected:
              return Actions.NORMAL
docs: Return scripting action when an error occured.