From: Kevin A. <ka...@us...> - 2006-01-24 19:59:47
|
Update of /cvsroot/pythoncard/PythonCard/samples/life In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20401 Modified Files: util.py Log Message: added try/except to catch missing descriptions Index: util.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/life/util.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** util.py 13 Dec 2005 11:13:23 -0000 1.11 --- util.py 24 Jan 2006 19:59:35 -0000 1.12 *************** *** 141,146 **** description += "\n" + s else: ! s, desc = s.split(' ') ! description += "\n" + desc # beginning of a cell block if pattern == {}: --- 141,150 ---- description += "\n" + s else: ! try: ! s, desc = s.split(' ') ! description += "\n" + desc ! except ValueError: ! # no description ! pass # beginning of a cell block if pattern == {}: |