mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-07-27 00:03:42 +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'''
|
'''Makes a folder (and its parents) if not present'''
|
||||||
try:
|
try:
|
||||||
os.makedirs(i)
|
os.makedirs(i)
|
||||||
except:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user