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:
parent
d0201da89d
commit
1308d89907
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue