Skip to content

Commit

Permalink
cell: fix 400 code while claiming
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalAwesome authored Jul 17, 2024
1 parent 965d2c3 commit 39dec9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bots/cell/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def authenticate(self, *args, **kwargs):

def api_call(self, url, post=True, json=None):
method = self.post if post else self.get
kwargs = dict(url=url)
kwargs = dict(url=url, return_codes=(400,))
if post:
kwargs['json'] = json
response = method(**kwargs)
Expand Down Expand Up @@ -88,4 +88,4 @@ def farm(self):
self.claim()
self.daily_reward()
self.log(MSG_STATE.format(balance=self.info['balance'] / 1_000_000))


0 comments on commit 39dec9f

Please sign in to comment.