comparison profilemanager/manager.py @ 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
comparison
equal deleted inserted replaced
57:3b4b87faa2a8 58:ce6a101fb239
131 """ 131 """
132 132
133 # get the profile section 133 # get the profile section
134 parser = self.parser() 134 parser = self.parser()
135 section = self.section(profile) 135 section = self.section(profile)
136 if profile is None: 136 if section is None:
137 raise ProfileNotFound(profile, self.profiles) 137 raise ProfileNotFound(profile, self.profiles)
138 138
139 # determine destination directory 139 # determine destination directory
140 if dest is None: 140 if dest is None:
141 dest = '%s.%d.bak' % (profile, int(time.time())) 141 dest = '%s.%d.bak' % (profile, int(time.time()))