potentially uninitialized local variable

potentially uninitialized local variable 'dict' used