Don't crash when showing Secure Boot alerts

This commit is contained in:
2Shirt 2018-10-03 01:16:11 -06:00
parent e3d62eab15
commit 4c0596b2df
2 changed files with 10 additions and 2 deletions

View file

@ -121,7 +121,11 @@ if __name__ == '__main__':
sleep(3)
try_and_print(message='Running XMPlay...',
function=run_xmplay, cs='Started', other_results=other_results)
check_secure_boot_status(show_alert=True)
try:
check_secure_boot_status(show_alert=True)
except:
# Only trying to open alert message boxes
pass
# Done
print_standard('\nDone.')

View file

@ -95,7 +95,11 @@ if __name__ == '__main__':
sleep(3)
try_and_print(message='Running XMPlay...',
function=run_xmplay, cs='Started', other_results=other_results)
check_secure_boot_status(show_alert=True)
try:
check_secure_boot_status(show_alert=True)
except:
# Only trying to open alert message boxes
pass
# Done
print_standard('\nDone.')