fix potential out-of-bounds string index error
This commit is contained in:
parent
7bf6f3669b
commit
ca86d6b68b
|
@ -281,7 +281,7 @@ class PypoFetch(Thread):
|
|||
|
||||
line = line.strip()
|
||||
|
||||
if line[0] == "#":
|
||||
if not len(line) or line[0] == "#"
|
||||
continue
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue