Skip to content

Commit

Permalink
Added a recommendation to fix an error when receiving a token
Browse files Browse the repository at this point in the history
  • Loading branch information
rzc0d3r authored Aug 14, 2024
1 parent 609f08d commit 20eed3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/SharedTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def parseToken(email_obj, driver=None, eset_business=False, delay=DEFAULT_DELAY,
if len(token) == 36:
return token
time.sleep(delay)
raise RuntimeError('Token retrieval error!!!')
raise RuntimeError('Token retrieval error, try again later or change the Email API!!!')

def parseEPHKey(email_obj, driver=None, delay=DEFAULT_DELAY, max_iter=DEFAULT_MAX_ITER):
for _ in range(max_iter):
Expand All @@ -321,4 +321,4 @@ def parseEPHKey(email_obj, driver=None, delay=DEFAULT_DELAY, max_iter=DEFAULT_MA
license_out_date = re.findall(r'\d\d.\d\d.\d\d\d\d', license_data)[-1]
return license_key, license_out_date, license_id
time.sleep(delay)
raise RuntimeError('ESET ProtectHub data waiting time has been exceeded!!!')
raise RuntimeError('ESET ProtectHub data waiting time has been exceeded!!!')

0 comments on commit 20eed3b

Please sign in to comment.