Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
BeaconNodeRequestFailure moved to validator_client.
Browse files Browse the repository at this point in the history
  • Loading branch information
g-r-a-n-t committed Jun 2, 2020
1 parent a5a87b1 commit 4c931a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion eth2/validator_client/duty_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from eth2.validator_client.abc import BeaconNodeAPI
from eth2.validator_client.duty import AttestationDuty, Duty, DutyType
from eth2.validator_client.duty_store import DutyStore
from eth2.validator_client.exceptions import BeaconNodeRequestFailure
from eth2.validator_client.typing import RandaoProvider, ResolvedDuty
from trinity.exceptions import BeaconNodeRequestFailure

logger = logging.getLogger("eth2.validator_client.duty_scheduler")

Expand Down
5 changes: 5 additions & 0 deletions eth2/validator_client/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class BeaconNodeRequestFailure(Exception):
"""
Raised when a Beacon Node request fails.
"""
pass
7 changes: 0 additions & 7 deletions trinity/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,3 @@ class MetricsReportingError(BaseTrinityError):
Raised when there is an error while reporting metrics.
"""
pass


class BeaconNodeRequestFailure(BaseTrinityError):
"""
Raised when a request made to a Beacon Node fails.
"""
pass

0 comments on commit 4c931a5

Please sign in to comment.