Traceback (most recent call last): File "/data/www/tdlz/app.py", line 3460, in get if realid[1]: TypeError: 'NoneType' object has no attribute '__getitem__'