# Overly Broad Exception Handler - ID: python-broad-exception-handler - Severity: LOW - CWE: CWE-396 (CWE-396) - Languages: Python - Frameworks: django, flask, fastapi ## Description Detects overly broad exception handlers (bare except: or except BaseException) that catch system exceptions like KeyboardInterrupt, SystemExit, which should not be caught in normal error handling. ## Remediation Catch specific exceptions or use Exception instead of bare except or BaseException. ```python try: process_data() except ValueError as e: logger.error(f"Invalid value: {e}") except IOError as e: logger.error(f"IO error: {e}") ``` Learn more: https://shoulder.dev/learn/python/cwe-396/broad-exception ## Documentation [object Object]