mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[utils] Show error if callback result is None
Most likely happens due to user-abort.
This commit is contained in:
parent
96ff42f05a
commit
b78b4f49c1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue