mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
Both workload scripts decoded JSON and went straight to .get() or .items(). An array or a scalar decodes fine and then raises AttributeError, which is not a ValueError, so the handler around the weights parsing could not catch it and the operator saw a traceback naming neither the command nor what arrived. Four sites across the two files, all four guarded, and the weights handler now also catches TypeError for a non-numeric weight value. Negative weights are left alone: they do not raise, the type is dropped from the mix silently, and changing that changes accepted input.