From 58b0f2433ee111d5c76c8a84a2a2a43381e73a14 Mon Sep 17 00:00:00 2001 From: Raphael Pertl Date: Thu, 15 Oct 2020 23:24:02 +0200 Subject: [PATCH] fix empty resolver --- extractor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extractor.py b/extractor.py index 6cdedb7..5c24c10 100644 --- a/extractor.py +++ b/extractor.py @@ -100,8 +100,9 @@ def createCerts(args): print('Unable to locate account or certificates in json') return # if Resolver is defined, but not used, return - if resolver['Certificates'] == 'null': - return + if resolver['Certificates'] is None: + print('resolver without cert... continue...') + continue # Loop over all certificates for c in resolver['Certificates']: # pprint(c)