Skip to content

fix: except BaseException silently swallows all errors - #22

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/metrics-features-utils-9a2cffe6
Open

fix: except BaseException silently swallows all errors#22
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/metrics-features-utils-9a2cffe6

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Problem

fix: except BaseException silently swallows all errors

Fix

Replace:

    except BaseException:
        print("Couldn't record data")
        pass

with:

    except Exception as exc:
        print("Couldn't record data:", exc)

Files changed

  • utils/metrics_features_utils.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review August 3, 2026 22:14
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.

1 participant