Fix nasty bug that was preventing GUI from starting in 0.4.44

This commit is contained in:
Kovid Goyal 2008-03-27 18:52:46 +00:00
parent c802411f28
commit b223fae171

View File

@ -93,9 +93,10 @@ _titles.sort()
titles = _titles titles = _titles
def migrate_automatic_profile_to_automatic_recipe(profile): def migrate_automatic_profile_to_automatic_recipe(profile):
oprofile = profile
profile = compile_recipe(profile) profile = compile_recipe(profile)
if 'BasicUserProfile' not in profile.__name__: if 'BasicUserProfile' not in profile.__name__:
return profile return oprofile
return '''\ return '''\
class BasicUserRecipe%d(AutomaticNewsRecipe): class BasicUserRecipe%d(AutomaticNewsRecipe):