Error !

TypeError: 'NoneType' object is not iterable

67
                </div>
68
            '''.format(icon=icon.contact,text=_(u'聯絡設計師'))
69

70
        mt = query_membership(user.id, detail=True)
71
        ## rank
72
        rank = int(mt['rank'].split('_')[1]) or 1
73

74
        membership_html = (
75
            u'<a class="membership-a n-my-membership" href="/my/membership" title="{}">'
/usr/local/lib/python3.9/site-packages/mosql/db.py, line 184:
184
return dict(izip(col_names, row))
/app/pinkoi/models2/membership.py, line 741:
741
return one_to_dict(cur)
/app/pinkoi/models2/membership.py, line 450:
450
log = query_record(self.uid)
, line 11:
11
self.__attrs_post_init__()
/app/pinkoi/models2/membership.py, line 596:
596
memberships = [attr.asdict(Membership(**data)) for data in all_to_dicts(cur)]
/app/pinkoi/models2/membership.py, line 596:
596
memberships = [attr.asdict(Membership(**data)) for data in all_to_dicts(cur)]
/app/pinkoi/models2/membership.py, line 716:
716
membership_map = query_membership_map([uid], user_geo, detail, hide_zero)
/app/pinkoi/templates/user.mako, line 70:
70
        mt = query_membership(user.id, detail=True)
/app/pinkoi/templates/user.mako, line 177:
177
                ${render_profile(user, seller_review, messenger_m.is_official_participant(uid), acl.is_admin(uid), shop=shop, userself=is_userself,currentUid = uid) | n, str}
/app/pinkoi/templates/base.mako, line 559:
559
    ${next.body()}\
/usr/local/lib/python3.9/site-packages/mako/runtime.py, line 943:
943
callable_(context, *args, **kwargs)
/usr/local/lib/python3.9/site-packages/mako/runtime.py, line 916:
916
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/usr/local/lib/python3.9/site-packages/mako/runtime.py, line 874:
874
_render_context(
/usr/local/lib/python3.9/site-packages/mako/template.py, line 438:
438
return runtime._render(self, self.callable_, args, data)
/app/pinkoi/middleware/mako/shortcut.py, line 305:
305
result = template.render(**data_dictionary)