fix crash on pre-3.9

master
Laura Liberda 2020-12-24 00:29:54 +01:00
parent adf9355069
commit 0646c6f6ac
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ def get_email_address():
for i in range(random.randint(3, 9)):
email += chr(97 + random.randint(0, 24))
# ~50% chance
if random.randbytes(1):
if random.getrandbits(1):
# random digits
email += compat_str(random.randint(0, 9999))
return email + "@" + random.choice((