Fix: Improve Python code quality and PEP 8 compliance by shbhmexe · Pull Request #2632 · su2code/SU2
- Replace improper `== None` and `!= None` comparisons with `is None` and `is not None` in multiple files. - Replace bare `except:` clauses with specific `except OSError:` in `topology_optimization.py`. Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
bot found potential problems Nov 28, 2025
Replaces OSError with Exception in several try-except blocks to catch a broader range of errors during file operations and subprocess calls. Adds comments to clarify that file removal errors are ignored if the file does not exist. Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters