Skip to content

Commit dac7d02

Browse files
committed
fix: Type error passing float to random randint
1 parent 2273161 commit dac7d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

event_loop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def on_account(err, acc=None):
275275

276276
client.get_user(user_id, on_user)
277277

278-
set_timer(random.randint(0, 10e6), on_timer)
278+
set_timer(random.randint(0, int(10e6)), on_timer)
279279

280280

281281
def main1(serv_addr):

0 commit comments

Comments
 (0)