Logo Search packages:      
Sourcecode: ubuntuone-dev-tools version File versions  Download package

def ubuntuone::devtools::handlers::MementoHandler::check_exception (   self,
  exception_class,
  msgs 
)
Shortcut for checking exceptions.

Definition at line 66 of file handlers.py.

                                                     :
        """Shortcut for checking exceptions."""
        for rec in self.records:
            if rec.levelno == logging.ERROR and \
               all(m in rec.exc_text for m in msgs) and \
               exception_class == rec.exc_info[0]:
                return True
        return False

Generated by  Doxygen 1.6.0   Back to index