'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/home/django/django_project/sm/smviews.py", line 119, in index
output = inner(request, choice)
File "/home/django/django_project/sm/smviews.py", line 59, in inner
output = octoaccountpage(request)
File "/home/django/django_project/sm/smtest.py", line 1393, in octoaccountpage
s += accountgraphql(key)
File "/home/django/django_project/sm/smtest.py", line 1325, in accountgraphql
variables = {'apiKey': key[10:]}
TypeError: 'NoneType' object is not subscriptable