Fix Module Import
This commit is contained in:
parent
bf262c224c
commit
94c9a42b72
@ -274,6 +274,10 @@ class SSLChecker:
|
||||
if user_args.html_true:
|
||||
self.export_html(context)
|
||||
|
||||
# While using the script as a module
|
||||
if __name__ != '__main__':
|
||||
return json.dumps(context)
|
||||
|
||||
# Enable JSON output if -j/--json argument specified
|
||||
if user_args.json_true:
|
||||
print(json.dumps(context))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user