Skip to content

Fixes issue #262 - Prevented crash when removing lint_off option.#352

Merged
Eyantra698Sumanto merged 1 commit into
FOSSEE:masterfrom
Abhishek-Soni-25:abhishek
Jun 8, 2025
Merged

Fixes issue #262 - Prevented crash when removing lint_off option.#352
Eyantra698Sumanto merged 1 commit into
FOSSEE:masterfrom
Abhishek-Soni-25:abhishek

Conversation

@Abhishek-Soni-25
Copy link
Copy Markdown
Contributor

Related Issues

Fixes #262 - eSim crashes while using Remove lint_off option

Purpose

Resolved a runtime crash that occurs when attempting to remove a lint warning entry via the Remove lint_off dropdown in the NgVeri tab. The issue arises when the selected entry does not match any exact line in the lint_off.txt file due to inconsistent line endings or formatting.

Approach

Modifies the lint_off_edit() function in NgVeri.py to handle (list.remove(x): x not in list) error when removing entries from lint_off.txt. The updated logic uses a try-except block to catch exceptions such as file access errors or missing entries. Instead of crashing the application, a warning message is displayed to the user if the operation fails. Makes the removal process safe and prevents GUI crashes.

@Eyantra698Sumanto Eyantra698Sumanto merged commit 05b1d8b into FOSSEE:master Jun 8, 2025
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.

eSim crashes while using Remove lint_off option

2 participants