mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
style fix
This commit is contained in:
parent
0f5844d4ae
commit
0d9881fc23
@ -276,8 +276,8 @@ def load_consensus_plugin(name=None):
|
||||
|
||||
# Is this strictness desireable?
|
||||
# It will probably reduce developer headaches in the wild.
|
||||
if not issubclass(plugin, (BaseConsensusRules)):
|
||||
raise TypeError("object of type '{}' does not implement `bigchaindb."
|
||||
"consensus.BaseConsensusRules`".format(type(plugin)))
|
||||
if not issubclass(plugin, (BaseConsensusRules,)):
|
||||
raise TypeError('object of type "{}" does not implement `bigchaindb.'
|
||||
'consensus.BaseConsensusRules`'.format(type(plugin)))
|
||||
|
||||
return plugin
|
||||
|
Loading…
x
Reference in New Issue
Block a user