Hi;<br>I have the following error:<br><br> /var/www/html/<a href="http://angrynates.com/cart/catTree.py">angrynates.com/cart/catTree.py</a> in getChildren(levelDict={'cat3': {}}, level=0)<br>   23   if level > MAXLEVEL:<br>
   24     return  #possibly the data has a cycle/loop<br>   25   for (nm, dt) in levelDict: ### ERROR HERE<br>   26     cursor.execute('''select <a href="http://c.name">c.name</a> from categories as c<br>   27       inner join relationship as r<br>
nm undefined, dt undefined, levelDict = {'cat3': {}}<br><br>ValueError: too many values to unpack<br>      args = ('too many values to unpack',) <br><br>However...<br><br>>>> d = {'cat': {'one':'two'}}<br>
>>> for a, b in d:<br>...<br>  File "<stdin>", line 2<br><br>    ^<br>IndentationError: expected an indented block<br>>>> d = {'cat': {}}<br>>>> for a, b in d:<br>...<br>
  File "<stdin>", line 2<br><br>    ^<br>IndentationError: expected an indented block<br>>>><br><br>So apparently, if either the nested dict is populated or not doesn't seem to throw any errors in the interpreter. What, then, is the nature of this error?<br>
TIA,<br>Victor<br>