The self-hosted Discord bot we are using in the Axie Manager server. It consists of multiple handy features for managing your scholars in Axie Infinity and being able to use it for multiple managers.
'NoneType' object has no attribute 'keys'
Traceback (most recent call last):
File "/home/pi/src/cogs/loops/alert.py", line 354, in old_listings
True,
File "/home/pi/src/alerts/genes.py", line 39, in get_genes
genes = pd.DataFrame(response)
File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/frame.py", line 570, in init
arrays, columns = to_arrays(data, columns, dtype=dtype)
File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 531, in to_arrays
data, columns, coerce_float=coerce_float, dtype=dtype
File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 643, in _list_of_dict_to_arrays
columns = lib.fast_unique_multiple_list_gen(gen, sort=sort)
File "pandas/_libs/lib.pyx", line 353, in pandas._libs.lib.fast_unique_multiple_list_gen
File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 641, in
gen = (list(x.keys()) for x in data)
AttributeError: 'NoneType' object has no attribute 'keys'
'NoneType' object has no attribute 'keys' Traceback (most recent call last): File "/home/pi/src/cogs/loops/alert.py", line 354, in old_listings True, File "/home/pi/src/alerts/genes.py", line 39, in get_genes genes = pd.DataFrame(response) File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/frame.py", line 570, in init arrays, columns = to_arrays(data, columns, dtype=dtype) File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 531, in to_arrays data, columns, coerce_float=coerce_float, dtype=dtype File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 643, in _list_of_dict_to_arrays columns = lib.fast_unique_multiple_list_gen(gen, sort=sort) File "pandas/_libs/lib.pyx", line 353, in pandas._libs.lib.fast_unique_multiple_list_gen File "/home/pi/venv/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 641, in
gen = (list(x.keys()) for x in data)
AttributeError: 'NoneType' object has no attribute 'keys'