mirror of https://github.com/nucypher/nucypher.git
Use class reference for exception instead of instance.
parent
4ed1ef12c9
commit
2841392b06
|
@ -22,7 +22,7 @@ def make_staking_provider_reservoir(
|
|||
without_set = set(include_addresses) | set(exclude_addresses or ())
|
||||
try:
|
||||
reservoir = application_agent.get_staking_provider_reservoir(without=without_set, pagination_size=pagination_size)
|
||||
except application_agent.NotEnoughStakingProviders:
|
||||
except StakerSamplingApplicationAgent.NotEnoughStakingProviders:
|
||||
# TODO: do that in `get_staking_provider_reservoir()`?
|
||||
reservoir = StakingProvidersReservoir({})
|
||||
|
||||
|
|
Loading…
Reference in New Issue