fix: replace bare except with except Exception in mpfs_configuration_generator.py (#1412)

Bare except clauses catch SystemExit, KeyboardInterrupt, and
GeneratorExit which is almost never intended. Using except Exception
follows Python best practices (PEP 8).

Co-authored-by: Srikanth Patchava <srpatcha@users.noreply.github.com>
Co-authored-by: Aniruddha Kanhere <kanherea@amazon.com>
This commit is contained in:
Srikanth Patchava
2026-06-19 14:44:58 -07:00
committed by GitHub
parent 8102d351eb
commit 97878317f2

View File

@@ -167,7 +167,7 @@ def safe_make_folder(i):
'''Makes a folder (and its parents) if not present'''
try:
os.makedirs(i)
except:
except Exception:
pass