mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
gnu-json-result: fix warning 'E722 Do not use bare except'
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user