Zxce3 / userbot

Exception caught is very general PYL-W0703
Anti-pattern
Major
a year agoa year old
Catching too general exception Exception
70            await app.send_photo(msg.chat.id, photo=img,
71                                 reply_to_message_id=rep)
72    # Dumb exception handler :v
73    except Exception as e:74        # print(e)
75        logging.warning(e)
76
Catching too general exception Exception
55                        logging.warning(
56                            f"Can't add {module_path}.{name}.{handler.__name__}: {e.__class__.__name__}: {e}"
57                        )
58        except Exception as e:59            logging.warning(
60                f"Can't import module {module_path}: {e.__class__.__name__}: {e}"
61            )
Catching too general exception Exception
50                    try:
51                        app.add_handler(handler, group)
52                        success_handlers += 1
53                    except Exception as e:54                        failed_handlers += 1
55                        logging.warning(
56                            f"Can't add {module_path}.{name}.{handler.__name__}: {e.__class__.__name__}: {e}"