1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

gnu-json-result: fix warning 'E722 Do not use bare except'

This commit is contained in:
Sylvestre Ledru 2025-03-16 08:57:58 +01:00
parent d0201da89d
commit 1308d89907

View file

@ -34,7 +34,8 @@ for filepath in test_dir.glob("**/*.log"):
) )
if result: if result:
current[path.name] = result.group(1) current[path.name] = result.group(1)
except: except Exception as e:
pass print(f"Error processing file {path}: {e}", file=sys.stderr)
print(json.dumps(out, indent=2, sort_keys=True)) print(json.dumps(out, indent=2, sort_keys=True))