Fix logger.warn error

Co-authored-by: poljar <poljar@termina.org.uk>
This commit is contained in:
Will Hunt 2020-09-16 15:01:16 +01:00 committed by GitHub
parent 3c5e42896f
commit 908c1a16be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,7 +581,10 @@ class ProxyDaemon:
if password == "":
if device_id is None:
logger.warn(f"Empty password provided and device_id was also None")
logger.warn(
"Empty password provided and device_id was also None, not "
"starting background sync client "
)
return
# If password is blank, we cannot login normally and must
# fall back to using the provided device_id.