more bugfixes
authormadcoder <madcoder>
Mon, 19 Jun 2006 22:11:24 +0000 (22:11 +0000)
committermadcoder <madcoder>
Mon, 19 Jun 2006 22:11:24 +0000 (22:11 +0000)
remote/mantis.py

index 03fd57626d727c0671913923fe68e15c454b0c4b..2f20e1fb1aa4006a31883a21a41a2c2d1e83c397 100644 (file)
@@ -38,8 +38,8 @@ status_re = re.compile(r'^\s*Status\s*$')
 resolution_re = re.compile(r'^\s*Resolution\s*$')
 
 def parse_table(soup, key):
-    cell = soup.firstText(key).findParent('td')
-    return maketoken(cell.findNextSibling('td').string.strip())
+    cell = soup.firstText(key).findParent('td') or None
+    return cell and maketoken(cell.findNextSibling('td').string.strip())
 
 def find_dupe(soup):
     cell = soup.firstText('duplicate of').findParent('td')