Browse Source

fix flake8-bugbear B016

B016 Cannot raise a literal. Did you intend to return it or raise an Exception?
master
SomberNight 3 years ago
parent
commit
90315e72d6
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/ripemd.py

2
electrum/ripemd.py

@ -151,7 +151,7 @@ def RMD160Transform(state, block): #uint32 state[5], uchar block[64]
if sys.byteorder == 'little': if sys.byteorder == 'little':
x = struct.unpack('<16L', bytes([x for x in block[0:64]])) x = struct.unpack('<16L', bytes([x for x in block[0:64]]))
else: else:
raise "Error!!" raise Exception(f"unsupported {sys.byteorder=!r}")
a = state[0] a = state[0]
b = state[1] b = state[1]
c = state[2] c = state[2]

Loading…
Cancel
Save