Fix: Improve Python code quality and PEP 8 compliance by shbhmexe · Pull Request #2632 · su2code/SU2

@shbhmexe

- 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>

github-advanced-security[bot]

bot found potential problems Nov 28, 2025

@shbhmexe

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>

pcarruscag