Browse Source
I originally converted input JSON naively into Millisatoshi, and the result was a strange failure in Millisatoshi.__eq__. It seems this is because inspect._empty.__eq__(Millisatoshi) raises NotImplemented, and so it tries Millisatoshi.__eq__(inspect._empty) which doesn't like it. 'is' is the correct test here, AFAICT, and doesn't suffer from these problems. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>pr-2391
Rusty Russell
6 years ago
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue