check we've some message to display stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 16 Oct 2009 14:37:26 +0200
branchstable
changeset 3701 104b7c326172
parent 3700 fd550e4dc515
child 3702 29cce43d6af2
check we've some message to display
server/utils.py
--- a/server/utils.py	Fri Oct 16 14:37:11 2009 +0200
+++ b/server/utils.py	Fri Oct 16 14:37:26 2009 +0200
@@ -71,7 +71,8 @@
 def manager_userpasswd(user=None, msg=DEFAULT_MSG, confirm=False,
                        passwdmsg='password'):
     if not user:
-        print msg
+        if msg:
+            print msg
         while not user:
             user = raw_input('login: ')
         user = unicode(user, sys.stdin.encoding)