swimmerhair

Swimbot Error

Oct 12th, 2022
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "C:\Users\wmiller.GTI\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
  3.     ret = await coro(*args, **kwargs)
  4.   File "c:\Users\wmiller.GTI\OneDrive - Goddard Technologies\Desktop\SwimBot\Swimbot\whois.py", line 235, in whois
  5.     player_info_list = sorted(player_info_list, key = lambda i: i['townHallLevel'],reverse=True)   #SORTING ALGORITHM
  6.   File "c:\Users\wmiller.GTI\OneDrive - Goddard Technologies\Desktop\SwimBot\Swimbot\whois.py", line 235, in <lambda>
  7.     player_info_list = sorted(player_info_list, key = lambda i: i['townHallLevel'],reverse=True)   #SORTING ALGORITHM
  8. KeyError: 'townHallLevel'
  9.  
Add Comment
Please, Sign In to add comment