Skip empty lines when parsing pk12util output.

This commit is contained in:
Jan Cholasta 2013-06-05 14:50:38 +02:00 committed by Petr Viktorin
parent 1e772b1845
commit 2ccadf4726

View File

@ -224,7 +224,7 @@ class NSSDatabase(object):
state = 1 state = 1
if line == "Certificate:": if line == "Certificate:":
state = 2 state = 2
elif not line.startswith(' '): elif line and not line.startswith(' '):
# Top-level item that is not a certificate # Top-level item that is not a certificate
state = 1 state = 1