Fix "== None" linter fails
Credit to Zoltan Konder for pointing me to this issue.
This commit is contained in:
@@ -444,7 +444,7 @@ class BitBox02Client(HardwareClientBase):
|
||||
}
|
||||
)
|
||||
|
||||
if tx_script_type == None:
|
||||
if tx_script_type is None:
|
||||
tx_script_type = txin.script_type
|
||||
elif tx_script_type != txin.script_type:
|
||||
raise Exception("Cannot mix different input script types")
|
||||
|
||||
@@ -228,7 +228,7 @@ class CKCCClient(HardwareClientBase):
|
||||
resp = self.dev.send_recv(CCProtocolPacker.sign_transaction(dlen, chk, finalize=finalize),
|
||||
timeout=None)
|
||||
|
||||
if resp != None:
|
||||
if resp is not None:
|
||||
raise ValueError(resp)
|
||||
|
||||
@runs_in_hwd_thread
|
||||
|
||||
Reference in New Issue
Block a user