projects
/
chemdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d7ee3
)
Protect against blank long-header line.
author
W. Trevor King
<wking@drexel.edu>
Mon, 5 Jan 2009 16:08:52 +0000
(11:08 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 5 Jan 2009 16:08:52 +0000
(11:08 -0500)
text_db.py
patch
|
blob
|
history
diff --git
a/text_db.py
b/text_db.py
index 0d0bf7299841cc72d8e8e4b5a21a2c8106c69bee..eca4740ed3bb23b94666f93780059a179e49169a 100644
(file)
--- a/
text_db.py
+++ b/
text_db.py
@@
-168,7
+168,7
@@
class text_db (object) :
if len(reclines) == 1 :
return # Only a header
# check for a long-header line
- if reclines[1][0] == self.COM_CHAR :
+ if
len(reclines[1]) > 0 and
reclines[1][0] == self.COM_CHAR :
self._long_header = self._get_header(reclines[1])
startline = 2
else :