Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import modules traceback and errno when they are needed #1930

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

fishilico
Copy link
Contributor

When loading the kernel module fails on Linux, chipsec_util.py raises an error in

logger().log_debug(traceback.format_exc())

because traceback was not imported.

Fix this issue by importing the missing modules traceback and errno. While at it, import traceback too in other files where it was missing.

When loading the kernel module fails on Linux, `chipsec_util.py`
raises an error in

    logger().log_debug(traceback.format_exc())

because `traceback` was not imported.

Fix this issue by importing the missing modules `traceback` and `errno`.
While at it, import `traceback` too in other files where it was missing.

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
@fishilico fishilico requested a review from a team as a code owner September 6, 2023 05:31
@dscott90 dscott90 merged commit 9a0f04e into chipsec:main Sep 6, 2023
38 checks passed
@fishilico fishilico deleted the missing-imports-traceback-errno branch September 7, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants