thoward27 / grade

Exception caught is very general PYL-W0703
Anti-pattern
Major
4 years ago4 years old
Catching too general exception Exception
47        for pipeline in self.pipelines:
48            try:
49                pipeline()
50            except Exception as e:51                logging.exception(e, exc_info=False)
52            else:
53                self._score += self.value[0]
Catching too general exception Exception
 66        for callback in self.callbacks:
 67            try:
 68                results = callback(results)
 69            except Exception as err: 70                log.debug(err)
 71            else:
 72                return results
Catching too general exception Exception
 48    def __call__(self, results: CompletedProcess) -> CompletedProcess:
 49        try:
 50            self.callback(results)
 51        except Exception as err: 52            log.debug(err)
 53            return results
 54        else: