changeset 58:ce6a101fb239

check for section; of course profile will not be none
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 11:55:15 -0700
parents 3b4b87faa2a8
children ee2777913a9e
files profilemanager/manager.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/profilemanager/manager.py	Fri May 07 11:52:06 2010 -0700
+++ b/profilemanager/manager.py	Fri May 07 11:55:15 2010 -0700
@@ -133,7 +133,7 @@
         # get the profile section
         parser = self.parser()
         section = self.section(profile)
-        if profile is None:
+        if section is None:
             raise ProfileNotFound(profile, self.profiles)
 
         # determine destination directory