i have trouble with KeyError although my dict have key here is my def index() http://imageshack.com/a/img922/5265/LsdzWU.png
here is my error massage
http://imageshack.com/a/img923/6976/7Wjtaj.png
here is my portfolio table
http://imageshack.com/a/img923/6287/gKgSSF.png
thanks