Skip to content

Commit

Permalink
fixed arguments for token failing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
s3inlc committed Nov 16, 2018
1 parent 3f49315 commit edfe83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htpclient/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ def __check_token(self, args):
ans = req.execute()
if ans is None:
logging.error("Request failed!")
self.__check_token()
self.__check_token(args)
elif ans['response'] != 'SUCCESS' or not ans['token']:
logging.error("Registering failed: " + str(ans))
self.__check_token()
self.__check_token(args)
else:
token = ans['token']
self.config.set_value('voucher', '')
Expand Down

0 comments on commit edfe83f

Please sign in to comment.