diff profilemanager/command.py @ 55:3b53d584195f

dont print None
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 11:35:40 -0700
parents 81500171fda8
children 18f16bd1ba6b
line wrap: on
line diff
--- a/profilemanager/command.py	Fri May 07 11:27:32 2010 -0700
+++ b/profilemanager/command.py	Fri May 07 11:35:40 2010 -0700
@@ -164,7 +164,9 @@
         retval = getattr(_object, name)(*command_args, **command_options.__dict__)
 
         # print the output
-        if isinstance(retval, basestring):
+        if retval is None:
+            pass
+        elif isinstance(retval, basestring):
             print retval
         elif isinstance(retval, dict):
             for key in sorted(retval.keys()):