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:
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue