[utils] Show error if callback result is None

Most likely happens due to user-abort.
This commit is contained in:
derrod 2021-10-07 05:18:46 +02:00
parent 96ff42f05a
commit b78b4f49c1

View file

@ -131,4 +131,7 @@ def do_webview_login(callback_sid=None, callback_code=None):
window.loaded += api.on_loaded
webview.start()
if api.callback_result is None:
logger.error(f'Login aborted by user.')
return api.callback_result