Skip to content

Commit

Permalink
VotedBeforeWaitTimeReached exception added for "Can only vote once ev…
Browse files Browse the repository at this point in the history
…ery 3 seconds"
  • Loading branch information
holgern committed Nov 25, 2018
1 parent e92cdf4 commit 9c7594e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beemapi/exceptions.py
Expand Up @@ -102,3 +102,7 @@ class WorkingNodeMissing(Exception):

class TimeoutException(Exception):
pass


class VotedBeforeWaitTimeReached(Exception):
pass
2 changes: 2 additions & 0 deletions beemapi/steemnoderpc.py
Expand Up @@ -140,6 +140,8 @@ def _check_error_message(self, e, cnt):
elif re.search("!check_max_block_age", str(e)):
self._switch_to_next_node(str(e))
doRetry = True
elif re.search("Can only vote once every 3 seconds", msg):
raise exceptions.VotedBeforeWaitTimeReached(msg)
elif re.search("out_of_rangeEEEE: unknown key", msg) or re.search("unknown key:unknown key", msg):
raise exceptions.UnkownKey(msg)
elif re.search("Assert Exception:v.is_object(): Input data have to treated as object", msg):
Expand Down

0 comments on commit 9c7594e

Please sign in to comment.