Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
fb604b1a
There was an error fetching the commit references. Please try again later.
Commit
fb604b1a
authored
5 years ago
by
Holger
Browse files
Options
Downloads
Patches
Plain Diff
Switch to next node when follow api is not enabled
parent
f5a67a4d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beemapi/exceptions.py
+4
-0
4 additions, 0 deletions
beemapi/exceptions.py
beemapi/steemnoderpc.py
+6
-0
6 additions, 0 deletions
beemapi/steemnoderpc.py
with
10 additions
and
0 deletions
beemapi/exceptions.py
+
4
−
0
View file @
fb604b1a
...
...
@@ -76,6 +76,10 @@ class NoApiWithName(RPCError):
pass
class
FollowApiNotEnabled
(
RPCError
):
pass
class
ApiNotSupported
(
RPCError
):
pass
...
...
This diff is collapsed.
Click to expand it.
beemapi/steemnoderpc.py
+
6
−
0
View file @
fb604b1a
...
...
@@ -125,6 +125,12 @@ class SteemNodeRPC(GrapheneRPC):
raise
exceptions
.
ApiNotSupported
(
msg
)
else
:
raise
exceptions
.
NoApiWithName
(
msg
)
elif
re
.
search
(
"
follow_api_plugin not enabled
"
,
msg
):
if
self
.
nodes
.
working_nodes_count
>
1
and
self
.
nodes
.
num_retries
>
-
1
:
self
.
_switch_to_next_node
(
str
(
e
))
doRetry
=
True
else
:
raise
exceptions
.
FollowApiNotEnabled
(
msg
)
elif
re
.
search
(
"
irrelevant signature included
"
,
msg
):
raise
exceptions
.
UnnecessarySignatureDetected
(
msg
)
elif
re
.
search
(
"
WinError
"
,
msg
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment