Skip to content

Commit

Permalink
error in creation of user catched via retry of login, but why? -> print
Browse files Browse the repository at this point in the history
  • Loading branch information
SirGankalot committed May 24, 2024
1 parent 1863526 commit 7952cbb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions checker/src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ async def putnoise0(
for i in range(0, 4):
try:
email_2, password1_2 = await checker_util_func.create_user(db, client, logger, public_key=None)
print("how many times tried:" , i)
break
except:
success = False
Expand Down Expand Up @@ -368,10 +369,14 @@ async def getnoise0(
email, password, note = await db.get("userdata")
except KeyError:
raise MumbleException("Missing database entry from putnoise")

try:
await checker_util_func.login_user(db, client, logger, email, password)
except:

success = True
for i in range(0,4):
try:
await checker_util_func.login_user(db, client, logger, email, password)
except:
success = False
if not success:
raise MumbleException("Could not login user")

try:
Expand Down

0 comments on commit 7952cbb

Please sign in to comment.