1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +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:
current[path.name] = result.group(1)
except:
pass
except Exception as e:
print(f"Error processing file {path}: {e}", file=sys.stderr)
print(json.dumps(out, indent=2, sort_keys=True))