mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-07-26 15:54:12 +00:00
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:
committed by
GitHub
parent
8102d351eb
commit
97878317f2
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user