Skip to content

Conversation

@samay2504
Copy link

fixes #2074

Proposed Fix

Replace bare except: with explicit except Exception::

except Exception:
    if logger:
        logger(
            f"Failed to create VulnerabilitySeverity for: {severity} with error:\n{traceback_format_exc()}",
            level=logging.ERROR,
        )

Detection Method

Found using ruff check . --select=E722 which reported 6 bare except violations in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Replace bare [except] with explicit Exception in pipes/advisory.py

1 participant