I'm using pylint to review one of my .py scripts and the below warning shows:
W0703: Catching too general exception Exception (broad-except)
This is an extract of the code.
try:
    # Execute function1
    function1()
    logger.info('Function 1 successfully executed')
    
except Exception as e:
    send_mail_error(str(e))
    logger.error(str(e))
I would like to understand what is pylint suggesting here in order to improve it.
 
    