python3 exception handling

This commit is contained in:
cecilkorik 2020-10-21 14:02:21 -04:00
parent 965fd44e6c
commit 86cb0a5ef5

View file

@ -66,7 +66,7 @@ def locate_config(paths, filenames):
if os.path.exists(fp): if os.path.exists(fp):
try: try:
fd = inifile.inifile(fp) fd = inifile.inifile(fp)
except None: except SystemExit:
fd = None fd = None
return fd return fd