server/utils.py
branchstable
changeset 3701 104b7c326172
parent 3585 cd437d24aa65
child 4212 ab6573088b4a
--- 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)