J08nY / pyecsca

Exception caught is very general PYL-W0703
Anti-pattern
Major
6 months ago3 years old
Catching too general exception Exception
230            for combination in product(*values):
231                try:
232                    mult = mult_cls(**dict(zip(keys, combination)))
233                except Exception:234                    continue
235                yield mult
236
Catching too general exception Exception
36    def flash(self, fw_path: str) -> bool:
37        try:
38            cw.program_target(self.scope, self.programmer, fw_path)
39        except Exception as e:40            print(e)
41            return False
42        return True