title: Object of type 'int' has no len
body: <p>I'm new here, but I thought someone might be able to help me with something I have been working on for a little while now.</p>
  
  <p>So I have been working on re-vamping fishing on a Toontown Fellowship source code, but after some time, I wound up with an error. The code is provided along with a picture of the Traceback.</p>
  
  <pre><code>for genus, speciesList in __fishDict.items():
      for species in range(len(speciesList)):
          __totalNumFish += 1
          speciesDesc = speciesList[species]
          rarity = speciesDesc[RARITY_INDEX]
          zoneList = speciesDesc[ZONE_LIST_INDEX]
          for zoneIndex in range(len(zoneList)):
              zone = zoneList[zoneIndex]
              effectiveRarity = getEffectiveRarity(rarity, zoneIndex)
              if zone == Anywhere:
                  for rodIndex, rarityDict in __anywhereDict.items():
                      if canBeCaughtByRod(genus, species, rodIndex):
                          fishList = rarityDict.setdefault(effectiveRarity, [])
                          fishList.append((genus, species))
  </code></pre>
  
  <p>And the Traceback occurs on line 785. <a href="http://i.stack.imgur.com/AVjpV.png" rel="nofollow">Object of type int has no len</a></p>
  
  <p>Any help with correcting this would be greatly appreciated! (Oh yeah, and this occurred when I tried to add a new genus to the fish list.)</p>