e42cc09ffbb67d00c855ff96ad9aa6ff2aa98f14 max Tue Jun 13 15:11:16 2017 -0700 fixing small bug visible only in error log, refs #13634 diff --git src/hg/hgGeneGraph/hgGeneGraph src/hg/hgGeneGraph/hgGeneGraph index 5f86b2b..6069ce4 100755 --- src/hg/hgGeneGraph/hgGeneGraph +++ src/hg/hgGeneGraph/hgGeneGraph @@ -1493,31 +1493,31 @@ else: print "→" # Unicode Arrow desc = entToDesc(themeType, themeName, themeGenes) print desc if relType!="" or relSubtype!="": if relType!="" and relSubtype!="": print "(%s, %s)" % (relType, relSubtype) elif relType!="": print "(%s)" % (relType) elif relSubtype!="": print "(%s)" % (relSubtype) if onlyDoc==None and len(docSet)!=0: - if len(desc)>25: + if desc is not None and len(desc)>25: print "<br>" print prettyDocLinks(conn, sorted(docSet)) if evidence!="" and evidence!="unknown": print "<br>Evidence: <i>", evidence.replace("|", ", ").replace("_", " "), "</i>" print "</li>" print "</ul>" def showPwyPpiInfo(conn, gene1, gene2): " print pathway and PPI info about link " gene1, gene2 = sorted([gene1, gene2]) q = "SELECT ggEventDb.* FROM ggLinkEvent, ggEventDb " \