Merge pull request #671 from croneter/pr_fix_futurewarning

Fix FutureWarning
This commit is contained in:
croneter 2019-02-02 13:43:24 +01:00 committed by GitHub
commit cb97734cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,7 +264,7 @@ def _sign_in_with_pin():
return return
app.APP.monitor.waitForAbort(0.1) app.APP.monitor.waitForAbort(0.1)
if not pinlogin.expired: if not pinlogin.expired:
if pinlogin.xml: if pinlogin.xml is not None:
pin_login_window.setLinking() pin_login_window.setLinking()
return pinlogin.xml return pinlogin.xml
finally: finally: