# HG changeset patch # User jjohnson # Date 1488480205 18000 # Node ID e84d1c3bf4fecbbedab228785bc556da351987dc # Parent 0ed75ed20c7ea3fd19a32268e89004335f2a93fe Uploaded diff -r 0ed75ed20c7e -r e84d1c3bf4fe query_tabular.py --- a/query_tabular.py Thu Mar 02 08:26:54 2017 -0500 +++ b/query_tabular.py Thu Mar 02 13:43:25 2017 -0500 @@ -362,7 +362,7 @@ # yield [col[0] for col in cur.description] for i, row in enumerate(results): # yield [val for val in row] - outputFile.write("%s\n" % '\t'.join([str(val) for val in row])) + outputFile.write("%s\n" % '\t'.join([str(val) if val is not None else '' for val in row])) except Exception, exc: print >> sys.stderr, "Error: %s" % exc exit(1)