mirror of
https://github.com/adulau/crl-monitor.git
synced 2024-11-24 19:17:13 +00:00
Bug fixed when exception is raised (int->str)
This commit is contained in:
parent
7b855b2969
commit
463c0c1d6a
1 changed files with 3 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# Software is free software released under the GNU General Public License version 3 and later
|
# Software is free software released under the GNU General Public License version 3 and later
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 Alexandre Dulaunoy - a@foo.be
|
# Copyright (c) 2014-2015 Alexandre Dulaunoy - a@foo.be
|
||||||
|
|
||||||
import fileinput
|
import fileinput
|
||||||
from M2Crypto import X509
|
from M2Crypto import X509
|
||||||
|
@ -53,7 +53,7 @@ for cert in fileinput.input(args.r):
|
||||||
certb = base64.b64decode(cert.split(",")[1])
|
certb = base64.b64decode(cert.split(",")[1])
|
||||||
except:
|
except:
|
||||||
if args.v:
|
if args.v:
|
||||||
print "Padding error "+fileinput.lineno()
|
print "Padding error "+str(fileinput.lineno())
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if args.k:
|
if args.k:
|
||||||
|
@ -81,5 +81,3 @@ for cert in fileinput.input(args.r):
|
||||||
r.sadd(fp, subject)
|
r.sadd(fp, subject)
|
||||||
else:
|
else:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue