mirror of https://github.com/nucypher/nucypher.git
Fixes syntax warning errors issued by linters.
parent
5d267e4fa5
commit
c87f6fe883
|
@ -412,7 +412,7 @@ class BlockchainInterface:
|
||||||
|
|
||||||
# Primary check
|
# Primary check
|
||||||
deployment_status = receipt.get('status', UNKNOWN_TX_STATUS)
|
deployment_status = receipt.get('status', UNKNOWN_TX_STATUS)
|
||||||
if deployment_status is 0:
|
if deployment_status == 0:
|
||||||
failure = f"Transaction transmitted, but receipt returned status code 0. " \
|
failure = f"Transaction transmitted, but receipt returned status code 0. " \
|
||||||
f"Full receipt: \n {pprint.pformat(receipt, indent=2)}"
|
f"Full receipt: \n {pprint.pformat(receipt, indent=2)}"
|
||||||
raise self.InterfaceError(failure)
|
raise self.InterfaceError(failure)
|
||||||
|
|
|
@ -437,7 +437,7 @@ class Felix(Character, NucypherTokenActor):
|
||||||
message = f"{population} registered faucet recipients; " \
|
message = f"{population} registered faucet recipients; " \
|
||||||
f"Distributed {str(NU(self.__distributed, 'NuNit'))} since {self.start_time.slang_time()}."
|
f"Distributed {str(NU(self.__distributed, 'NuNit'))} since {self.start_time.slang_time()}."
|
||||||
self.log.debug(message)
|
self.log.debug(message)
|
||||||
if population is 0:
|
if population == 0:
|
||||||
return # Abort - no recipients are registered.
|
return # Abort - no recipients are registered.
|
||||||
|
|
||||||
# For filtration
|
# For filtration
|
||||||
|
|
Loading…
Reference in New Issue