in exception cannot unpack non-iterable NoneType object