From ea32ba6a8349cf76372e823ea846f3f882beaa5e Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 19 Aug 2014 11:51:54 +0200 Subject: [PATCH] Compare with None --- src/modules/displaymanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index 68143cd55..05ef382dc 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -324,7 +324,7 @@ def run(): else: return "kdm selected but not installed", "" - if username != "None": + if username != None: libcalamares.utils.debug( "Setting up autologin for user %s." % username) return set_autologin(username, displaymanagers, root_mount_point)