Conversion error in FC layer weights to Conv layers weights

I am following this link as to how to convert FC layer weights into Conv layer weights. But when I enumerate over fcLayers[1:], it throws the following error:

IndexError: index slice(1, None, None) is out of range

Could someone suggest some solution ?