User1342 commited on
Commit
b35b784
·
1 Parent(s): 777faa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -228,16 +228,10 @@ def block_user(user_id, user, reason):
228
  blocked = True
229
  attempts = 0
230
  while not finished:
231
- try:
232
- attempts = attempts + 1
233
- client.account_block(user_id)
234
- except:
235
- time.sleep(60)
236
-
237
- if attempts > 5:
238
- finished = True
239
- break
240
-
241
  print("Blocked {}, for {}".format(user, reason))
242
  return blocked
243
 
 
228
  blocked = True
229
  attempts = 0
230
  while not finished:
231
+ attempts = attempts + 1
232
+ client.account_block(user_id)
233
+
234
+
 
 
 
 
 
 
235
  print("Blocked {}, for {}".format(user, reason))
236
  return blocked
237