Small suggestion regarding type errors and subscription

Nice so it will give an error like this now ? If so, nice!

TypeError: Key “name” cannot be used with “NoneType” because it’s not subscripts or