Code Cleaning

This commit is contained in:
DarkMidus 2020-05-14 15:30:36 -05:00 committed by GitHub
parent c786f9fe62
commit 81a966eeb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,10 +19,10 @@ import ssl
simple_informant.license_handler() simple_informant.license_handler()
agreement = simple_informant.terms_of_service_message() agreement = simple_informant.terms_of_service_message()
if agreement != True: if not agreement:
exit() exit()
if(not environ.get('PYTHONHTTPSVERIFY', "") and getattr(ssl, '_create_unverified_context', None)): if not environ.get('PYTHONHTTPSVERIFY', "") and getattr(ssl, '_create_unverified_context', None):
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
simple_informant.check_permissions() simple_informant.check_permissions()
@ -48,7 +48,6 @@ if __name__ == "__main__":
server_runner.start_server(port) server_runner.start_server(port)
server_menu.server_selection(port) server_menu.server_selection(port)
multiprocessing.Process(target=server_runner.start_server, args=(port,)).start() multiprocessing.Process(target=server_runner.start_server, args=(port,)).start()
simple_informant.credentials_collector(port) simple_informant.credentials_collector(port)